Yes, you can have ‘righteous’ violence, the same way you can have an unrighteous pacifism that only leads to more violence and death.
“Violence is the last refuge of the incompetent.” – Isaac Asimov
“Whoever fights monsters should see to it that in the process he does not become a monster. And when you look into the abyss, the abyss also looks into you.” – Friedrich Nietzsche
“One should not directly confront evil, which only feeds it, but instead should steadfastly strengthen that which is good.”
Evil conditions come about from our own human weaknesses and frailties. It grows like a fungus in damp, shaded soil. Attack it all you want and it will just multiply like the Hydra. Remove the conditions (damp/shade) that the fungus thrives in and it vanishes almost magically.
Violence begets more violence. To stop violence, you stop being violent and create conditions where violence is unacceptable and unnecessary.
Otherwise you end up just like that which you claim to oppose. How do you think all these people got this way? So utterly compromised? Think about it a bit more please. People don’t choose to be ‘evil’. They generally think they’re the exact opposite and are ‘doing good’.