But Ricardo was a big influnce on Marx, who saw free trade as a means to get the ruling elite rich.
Yes, Marx understood the social consequences and implications that Ricardo ignored.