That’s a very nuanced issue, but I oppose capital punishment in any developed country than can afford to lock even the most dangerous criminals up securely.
To your point, I’d say no unless the executioner willfully derives pleasure and purpose from doing so. Then it becomes, to me, sanctioned murder.