You get what you pay for, high quality code costs money and off shore talent will generally immigrate to first world countries if they have the talent cause of wage suppression abroad for the same skillset. My 2 cents
I think the other commenter is probably closer to accuracy. Here in NYC, offshoring to Chile/DR and other countries in the same timezone is surprisingly popular, even for early stage startups. The idea that people will just immigrate is a bit of a stretch. Coming from an immigrant family I will tell you that some of the most talented people stayed behind while others got lucky. My $0.02, just like anyone else's, and I know people currently in India launching really great code schools, but the talent argument never held in my mind.