The Justice of Market Outcomes

In any given exchange market (whether free or otherwise), goods and services are traded as a matter of course, in the pursuit of both individual and social goals. Those trades will result in substantive outcomes both for the individuals involved in trades, and more broadly for society as a whole. It has been suggested that some of those outcomes may be undeserved. If we assume this to be the case, the question then arises, are undeserved market outcomes are unjust?