Isn’t that what the space program was? “We’re going reach for the heavens and put a man on the moon [necessitating technology that can also drop a nuke anywhere on earth]!”
It was really the other way around. Early manned spaceflight programs were mainly based on military missile technology. Later civilian developments of heavy lift liquid fueled rockets were useless for delivering nuclear weapons.