It is currently uncertain[a,b] if the vaccines prevent the spread of corona, and logically therefore it is unknown if the vaccinations contribute towards herd immunity or not.
[a]: https://www.wsj.com/articles/can-you-still-spread-covid-19-a...
[b]: https://www.nytimes.com/2020/12/08/health/covid-vaccine-mask...