Good point, but there's a very big difference between dual use tech that gets it's start in the military, vs building weapons systems.
Silicon, GPS, the Internet, nuclear power, most of rocketry and space etc., I think most would believe was worthwhile.
Building cruise missiles, or 'Civilian Monitoring Tech' - that's a different question.
I don't think that DARPA, the internet, or NASA etc. count as 'Military Industrial Complex', but Anduril of course does, and Palantir pretty much does as well.
That's 'new' for the Silicon Valley at least, it has mostly not been building 'defence tech' but rather general tech that has key defence use.
Ok you say rockets and space were "worthwhile" and missiles are "a different question".
But of course the space race proceeded from work on missiles. ICMBs are rockets that go high and fast and then happen to complete less than one full orbit.
And my understanding is that early ICs were for missiles because it was acceptable for the ICs to be very expensive in exchange for them being very light and small. Only a context that was optimizing for a tiny package (b/c extra weight also required more fuel) and was relatively cost insensitive would justify them at first. The point is building weapons sometimes _does_ turn into tech that can be used more generally. Does that justify the risk?