Yes, but it is the only way.
And, just to be clear, with regard to the punitive goal of a sentence, I am still against the #DeathSentence, even for someone because of whom hundreds of thousands died unnecessarily due to #Covid19, who quite likely sold military secrets to foreign adversaries, etc.
However, there's always the more important part (we can all agree that we can skip the "change his behavior" part, I guess😂,) of ...