It's true but incomplete. For example:
DDT - May not have been anywhere near as bad as first thought, and replaced in part by these compounds, which themselves are being banned now. Also there's some argument that extensive use of DDT was key to ridding the US of malaria, we banned it worldwide, taking out one of the weapons in mosquito control. One could make an argument that banning DDT has killed people b/c increased incidence of malaria. It's hotly debated, but it's not a bonkers view, and most of those deaths would be in the 3rd world.
Cadmium Paints - Yes and no, artists still say it's not the same, and the replacements in industrial scale aren't always as good on a variety of fronts (https://www.bloomberg.com/features/2018-quest-for-billion-do...). Also not sure they're as affordable.
CFCs (then some HCFCS) - Good thing to ban without a doubt, but replacements are more expensive. The ACs made with the new gasses are more expensive, which has a real human cost: (https://www.nytimes.com/2007/02/23/business/23cool.html)
I'm not making an argument for or against this particular ban or any of the bans above. I am making an argument that these bans are not without costs, and will almost certainly come with trade-offs. Some of those trade-offs will be overcome, others are much harder, and the short run will likely have some pain in the form of higher prices.
Lets say for example we got rid of all pesticides/herbicides. Could we generate enough food to feed the world? How much more expensive would staples like rice and wheat become? How much more expensive would high-nutrition fruits and veggies become? It's possible that someday get over it, but it's not good to minimize the practical drawbacks.
I think we've gotten to a point as a society where _any_ risk of something bad is too much risk, so we ban anything that presents risk. But we're left with things where either the risk is unknown, or that are bad in other ways. The average popular discussion of environmental/health risks often neglects to ask, "what might be an acceptable risk", I think sometimes the risk is worth it.