No he didn't.
How silly would it have been for a sitting president to go to the moon.
If I were JFK, I would have wanted a nice cottage on the moon.