Yes, in certain instances. If a criminal has performed a heinous violent action and shows no sign of an ability to repent and be rehabilitated, then there is no use spending many precious resources keeping him alive. Society needs protection from him and he is probably a tortured soul. Life for its own sake is not the highest value.