There is a legitimate argument over whether the death penalty effectively deters violent crime, although my personal observation is that not one of the criminals who have been executed over the years has ever killed again.
Dinesh D'Souza (2009). “Letters to a Young Conservative”, p.127, Basic Books