T-shirts are made in Bangladesh while code is still being made by extremely well compensated professionals in developed countries. That's despite code being easier to transport internationally than clothes. It's hard to say that it's worked yet.
A lot of code is made by people in countries with relatively low incomes, eg eastern Europe. Most of the software in your car is probably written by an offshore team for example.
Sure, but I don't think that the code being produced in the US is "small code shops" producing artisanal code. It's not about whether code is produced in other places, it's if it's produced at a high scale locally. I don't think it's a problem that Poland and India have programmers.