When passing another vehicle on a two-lane road, you should:

Do not pass another vehicle if there are any present conditions that do not allow safe passing, such as oncoming vehicles and pedestrians or upcoming bridges, curves, hills, intersections, or railroad crossings. Do not try to pass more than one vehicle at the same time. Do not follow another vehicle that is passing in front of you.
DMV Writen Test