Not when they are morally corrupt and cause their country to degenerate, no. You seem to be getting the death penalty confused with random acts of murder.
The lines should be clear cut - You do X deed, that is considered by law to be worthy of the death penalty, you are found guilty, then you get put to death. I'm not talking about "Bobby lifted up a girl's skirt at school! Kill him nao!", I'm talking about "This man has raped and murdered people. He has shown himself to be a degenerate to society, and therefore should be removed from it completely."