That's true, but not really in the general way you argue. Military spending on bay area R&D has been more or less insignificant for the entirety of the internet era. It exists, sure, but it's not driving meaningful revenue for any of the big players. Silicon Valley since the mid 90's has been a consumer thing only.
And even in the genesis of the valley, it was just one serendipitous application (missile guidance systems, which were willing to pay huge sums for early transistors which were literally 100x lighter than vacuum tubes).