Only if you ascribe to the ideology of lesser evilism, which is a ridiculous ideology.
Suppose someone has rounded up 10 people, and they say, “I’ll kill all of these people, unless you kill one of them for me.” Is it moral to do that? How about if you do it and he says, “You work for me now, go round up 10 more people for me so I can do this again, or else I’ll kill 20.” Still moral?