Yes you/one should be able to replace the pin Connection.
For many helpful tips you may want to try searching online first under 'Image' - "Wire Harness Female Pin Terminals Electrical Connection to see if you can identify the type of design you're dealing with then while still searching Wire Harness Female Pin Terminals Electrical Connection, 'Click on videos and there ought to be some "How To Repair" wire pin connections which shows ways to remove the pins plus change them out, etc..
Though the following video is not your exact design connector, here's just an example of what it's going to take to make it right again.
How to repair an automotive wiring harness connector | How to depin a pigtail, connector, plug
They do have helpful tools to help change these out...Maybe try searching female pin terminals electrical connection removal tools for ideas.
If maybe you don't want to give this job a try, Maybe bring the boat by a well known, busy type auto/marine stereo install shop as they'll probably be able to switch that pin out in minutes once started.
Good luck.