I think if the epidemic is severe enough, yes. Especially vaccinations, quarantine measures are a bit trickier. It's well worth it to save the lives of tens of thousands of people.