No punishment has ever possessed enough power of deterrence to prevent the commission of crimes. On the contrary whatever the punishment once a specific crime has appeared for the first time its reappearance is more likely than its initial emergence could ever have been.
One to destroy is murder by the law and gibbets keep the lifted hand in awe to murder thousands takes a specious name 'War's glorious art' and gives immortal fame.