The Catechism of Trent noted so in it’s statement on the 5th Commandment
The end of the Commandment is the preservation and security of human life. Now the punishments inflicted by the civil authority, which is the legitimate avenger of crime, naturally tend to this end, since they give security to life by repressing outrage and violence
Trent was unambiguous in its acceptance of capital punishment, but I don’t think this citation is the best one for showing it. In fact I think it might further the misunderstanding about punishment. What I suspect most people will miss in this citation is that it starts with “
The end of the Commandment…”, not with “
The end of punishment.…”
The objective of the commandment not to murder is “
the preservation and security of human life”, but that is not the first objective of punishment. Indirectly it could be considered the objective of all virtues, but justice, which is the end of punishment, is different than security.
Until a better appreciation of the meaning of punishment becomes common, the misunderstanding that punishment is primarily intended for defense will continue.
For the fundamental demand of justice, whose role in morality is to maintain the existing equilibrium, when it is just, and to restore the balance when upset. It demands that by punishment the person responsible be forcibly brought to order; and the fulfillment of this demand proclaims the absolute supremacy of good over evil; right triumphs sovereignly over wrong. (Pius XII)