Pioneer 4 flew by the Moon's surface before inserting into the type orbit that planets of the Solar System are in around the sun.
Pioneer 4 was an American spin-stabilized unmanned spacecraft launched as part of the Pioneer program on a lunar flyby trajectory and into a heliocentric orbit making it the first probe of the United States to escape from the Earth's gravity. 
 It passed within 58,983 km of the Moon's surface. 
A heliocentric orbit (also called circumsolar orbit) is an orbit around the barycenter of the Solar System, which is usually located within or very near the surface of the Sun. 
