The principle holds, with 2 limits. Money now crosses borders fast, which the swap argument assumed it wouldn’t. And the gains spread thin while the losses land on particular towns: after China joined world trade, the hardest-hit American places still had lower incomes more than 10 years later.
From On the Principles of Political Economy and Taxation by David Ricardo