No, they would not have, and we can discuss the reasons if you would like. But even if we were to accept that torturing someone to death was the only way to save the lives of everyone in the world, the point here that the people just had to have an extremely vague greater good argument wafted in their general direction and they uncritically accepted it to such an extreme extent that they willingly tortured people to death, and then electrocuted the corpses some more for good measure. Similar occurrences have repeated many times throughout human history, where people committed completely unnecessary horrors because they were told they were necessary and their brains switched off.
GREATER GOOD ARGUMENTS ARE NOT TRUSTWORTHY. YOUR HUMAN BRAIN CANNOT WELL DISTINGUISH THE GOOD ONES FROM THE BAD ONES, EVEN IF YOU THINK TO TRY IN THE MOMENT.
HEED THIS WARNING.