If the pin isn't secured to the board, only soldered, next time the connector is removed the pin may go with it. Peeled the copper trace off the board.
Your picture shows example of repair with hardware. So long as the screws head doesn't touch metal behind the board, it works.