Vaccines are not perfect, but that does not mean they are not worth it. A few still get infected when vaccinated. They are more likely to do so if exposed to people who are actually sick.
Babies too young to be vaccinated are also put at risk by fewer vaccinated people.