It is not OK to sacrifice any number of humans for the "greater good." Utilitarianism is a totally discredited pseudo-ethic that has been used throughout modern history to justify horrific human rights abuses, and it will do so again if not rejected. Thousands are dying from receiving vaccinations, yet this is dismissed as inconsequential.
Source