The coffee prevents you from falling asleep at the wheel and crashing, however.
If you're that tired that you need coffee to stay awake, you absolutely shouldn't be driving.