Sure, but the usual counterargument is that the air and water need to be made legible to the market (through private ownership or the correct externality taxes), and then everything will be perfect. While in reality that's demanding a level of computation from markets that they simply do not possess.