Yes, this is why “death penalty for everything“ wouldn’t suddenly eliminate crime.
If they stop committing crimes either because they are still in jail or dead, the crime rate would absolutely drop.
https://www.ussc.gov/research/research-reports/recidivism-am...