Yes, vaccinations are beneficial in maintaining herd immunity -- that is, immunity shared by a large population
This lowers the chance that an immunocompromised individual or an individual who cannot be vaccinated due to adverse reaction will get the disease that is being vaccinated for.