What was the purpose of the Apollo program?
Going to the moon
The Apollo program was launched in 1961 by president Kennedy and aimed at going to the moon. Accoriding to the NASA objectives went beyond that:
"The national effort that enabled Astronaut Neil Armstrong to speak those words as he stepped onto the lunar surface fulfilled a dream as old as humanity.
Project Apollo's goals went beyond landing Americans on the moon and returning them safely to Earth. They included:
Establishing the technology to meet other national interests in space.
Achieving preeminence in space for the United States.
Carrying out a program of scientific exploration of the Moon.
Developing man's capability to work in the lunar environment."
Source and more details:https://www.nasa.gov/mission_pages/apollo/missions/index.html