No. This was a strategic move.Strategy(specially when it works) looks superfluous but it is not.
There are strategic fields like food or semiconductors in which you need to assert independence or you will be blackmailed.
E.g Germany recently made strategic mistake using the gas from the Russian pipelines AND not building alternatives.
Had Germany built energy plants as alternatives, they would have not been used at all(because is is usually more expensive), so people like you would have called them "PR move".
Had Germany built alternatives that they could use, Russia would not have been as emboldened to invade Ukraine, and if Russia would had been stupid enough to invade anyway, Europe would not have paid the start of the war to Russia with overprices and Ukraine could have been given heavy weapons way sooner.
Europe has wasted tens of billions of euros by making such strategic mistakes.
The US is building semiconductors plants in the US. The objective is not to build semiconductors in the US if it is moreexpensive, the objective is be able to create semiconductors very fast if China invades Taiwan.