Indeed, economists have demonstrated that trade between two people can be beneficial even if one of them is more skilled than the other at every task, so long as the more-skilled person specializes in those tasks at which he or she is relatively more productive. What applies to individuals applies to nations as well.
Two centuries ago the economist David Ricardo famously observed that, if England specialized in making cloth while Portugal specialized in producing wine, international trade would allow both countries to enjoy more of both goods than would be possible if each country produced only for domestic consumption and did not trade.