The moon program was started by Eisenhower and was well underway by the time JFK hitched his wagon to it. Above is a picture of Eisenhower with Von Braun in front of a Saturn booster in 1960, before JFK was elected.
I don’t think that Ike would have put nearly the resources into a moon landing that Kennedy did. There was no reason to.