Still immoral. The necessity overrides the immorality.
So sometimes we must do things which as a rule are wrong.
If that's what you mean I may agree with you. I believe it's a מדרש which goes through the 10 commandments as: לא,תרצח. לא, תנאף etc. (Some bring it to explain in Tanya where he says something like 'הרהורי ניאוף בין בהתר כו)
Meaning that ניאוף as a rule is not allowed, but with your married spouse is something we are commanded to do. Murder as a rule is not allowed, but to kill certain people in certain situations is something which we are commanded to do.
Again, I am understanding 'a man of morals' as someone who doesn't react based only on his feelings but tries to conform to a higher standard, from either A)G-d or B)for the greater good and progression of the human race.
If we are too choose B. The greater good of humanity is subjective, everyone has their own view of the way the world should look, and who can be the judge to decide who's blood is more red. (So it's not really for a higher standard)
How would the world look if everyone killed those whom they believed were a threat to the furtherance of humanity.