I have some pretty serious doubts about it when it comes to large financial crimes where both those things are absolutely part of the process. A death sentence probably isn't going to stop someone from killing another person, they're already off the deep end of irrationality. However 25 years of prison is probably going to be a significant deterrent to someone choosing to commit billions worth of fraud, maybe the profit margin isn't that important.