To the extent that I would agree, it would IMO only be ethical for a government tax negative externalities to directly pay for mitigation, control, etc , i.e a carbon tax that directly goes to carbon removal / capture.
taxing exernalties then using the money for unrelated projects i.e taxing cigarettes to pay for schools, is something I would oppose