JFK, in the long sweep of history, will be remember (if at all) for starting the race to the moon. Because our species has a big future in space. This would be true of ANY president who initiated a space race that ended in the first moon landing.
Kennedy wasn’t that interested in space, but geopolitical forces made his decision to go to the moon a gutsy and dangerous one.