It needs both, of course. Otherwise it would not have the port
Some older hard drives can be powered using a Molex power port or a SATA power port. The Samsung drive only has the SATA power port. You can get a Molex to SATA adapter cable if you need one, though.