yep, that's the way to fix it. All that pin does is prevent contact between the wire to the trailer brakes and a wire to the trailer battery. When it is pulled, contact is made and the brakes come on. Replacing it will break contact, and brakes will come off.
2003 Ford F-350 V-10 Crew Cab 4WD Long Bed
2004 Jayco Designer Medallion 29 RLTS 5th wheel
Bill, Gayle, and Mindi (dachshund)
Retired at last !
Nothing is foolproof to a sufficiently talented fool.