Don't know about Muslims, but Jews are  not prohibited from vaccinations. Nearly every case that occurred in Ocean County NJ centered around the Hasidic areas and many of the infected had visited Israel. Hasidics may prohibit vaccines, I don't know for sure, but most Jews do not exempt themselves.