ICBM's travel through space. They just not supposed to go off until they're back on the ground. You know why nuclear weapons are illegal in space? Because they tried it once. Over the Pacific which for
No they go off over their target at altitutde so the energy is released over the target not into the ground. Nuclear weapons are illegal in space because various treaties have been agreed upon making them a treaty violation.