There are medically valid reasons that specific individuals can't be vaccinated
But those reasons come from doctor's not parents. Furthermore these rare cases are why everyone else needs to get vaccinated, because it protects those very few who cannot.