I would definitely say atomic bombs/power have not been a net good. We now have renewables, so clean energy without nuclear, and the existence of the bombs just increases our x-risk.
AI may very well end up in the same bucket where the ills outweigh the goods. There is no universal law that says every technology increases human flourishing.
Another good historical precedent is human cloning. That could have really fucked up the axioms underpinning modern civilization, but hey, we all just decided to ban it, and that ban worked.