I wonder if those accomplishments were meant to happen if they hadn’t had an ideological enemy in the ‘capitalist west’.
Your point isn’t completely invalid, but it’s a circular argument. Whatever the external force was, the system had the ability to complete the objective.
One could actually argue that sending a person to the moon didn’t directly achieve anything for the people, so that wouldn’t necessarily have been a goal by itself anyway and was a waste of resources.