Yes. There is also the Atra Hasis and Enuma Elish where they used hunger, disease, flooding, etc. to control the vile human animal population.
Sell your cloak and buy a sword. Good is not obligated to co-exist with evil. Love thy neighbor does not mean to tolerate pedophilia and other evil acts by evil “people”.