Yes, which is why the government can fix what the market messed up, because market participants weren't charged for the costs of the externalities they are responsible for. Carbon taxes can change that.
At this point, carbon taxes are really pretty much ephemeral, something that is basically too little, too late. You're adding more tax to a pile that the company already doesn't pay.