Best way to control a 12v PC fan with raspberry pi?

Would I be able to connect a three wire PC fan directly to a Raspberry Pi 3’s GPIO pins?