If you remove them from the deck first they can be repaired but will be somewhat weaker after that. If you try to straighten them on the boat you risk doing damage to the deck by pulling or bending the mounting/reinforcement plates in the deck structure.
Stantions on many smaller boats are mainly for looks as they are so low that they cause as much hazard as they try to prevent.
Ray