Yes you can directly connect the 3pin onto the motherboard.
Molex connectors are necessary when you don't have any 3 pin headers left on your board to connect fans. Then you use molex connectors to connect the fans to your power supply rather than the motherboard.