You should avoid soldering when possible because connectors are detachable for module maintenance and solder is prone to cracking in high vibration environments. Typically you will see a connector soldered and otherwise secured mechanically to a PCB where vibrations are unavoidable.
Crimping is better whenever feasible