That’s exactly the reason that the Space Force was spun off.
This also eliminates the VERY bloated NASA that's under near zero executive control. Now as an armed force the Commander-In-Chief has direct say. The layers of bureaucracy in most 100% civilian federal government agencies is so deep, nobody is in control of them except entrenched, ancient GS workers.
Hey State Department - guess whose coming to dinner?