Yes, you can prevent a head-on crash by doing the following:
Understanding the road you're navigating
Driving to the right of a two-lane road
Slowing down
Going off the road when colliding with another vehicle is imminent