Right. To be a participant in a global marketplace means having specialties you can trade on. This is why a common strategy of the emerging economies of the world, past and present, is to heavily protect and subsidize infant industries so that they aren't crushed by foreign competitors. As they establish themselves, the barriers can be gradually lowered until the industry is competitive on the open market.
Free-trade policies tend to be most beneficial to the market incumbents; but I would note that even when a foreign company simply comes in and exploits cheap labor, the workers will get better wages, and even if that doesn't directly benefit their own lives, it can give their children a better lifestyle and education.