deductive validity

If killing a human being is always morally wrong, then the death penalty cannot be justified. But there are some situations, such as self-defense, in which it would not be wrong to kill a human being. So the death penalty is justified. Is the argument valid or invalid?

"Is this question part of your assignment? We can help"