This is not true. Vaccinations are not 100% effective. They're usually in the range of 90% to 99% effective. Protection also wanes over time. Because of this, herd immunity protects everyone, not just those who are unable to be vaccinated for health reasons.