Capital punishment is ordained by God but I don't believe realigning someone's misguided attitude through physical means is ordained of God.
Romans 13:4
For he is God’s servant for your good. But if you do wrong, be afraid, for he does not carry the sword in vain. He is God’s servant, an agent of retribution to the wrongdoer.
Genesis 9:6
"Whoever sheds the blood of man, by man shall his blood be shed, for God made man in his own image.
Romans 12:19
Do not avenge yourselves, beloved, but leave room for God’s wrath. For it is written: “Vengeance is Mine; I will repay, says the Lord.”