The Bible is quite clear that the death penalty is fine.
Never mind necessary. Ecclesiastes 8:11 reveals what happens to society when punishments are too lenient.