Partially, but defense is the biggest buyer for electronics - which is why the CHIPS Act and "Supply Chain Security" became a thing.
For a number of commodity components, there was a heavy reliance on China due to low margins. Now there is a push to move those portions of the supply chain away to other partners.