Yes, I do believe some government intervention is necessary in these situations. Quarantine measures should absolutely be enforceable during a pandemic. For vaccines, since they involve people's bodies and therefore consent, they should only be enforceable in the sense that it is legal to be unvaccinated, but other policies should be set in place so that unvaccinated people do not further spread the disease.