Yes, but herd immunity only works above a certain level. Vaccinations are not 100% effective and not every doctor or nurse can have all vaccines due to their own health conditions.
I would expect doctors and their kids to be up to date on their vaccines though, probably following the best current advice rather than the requirements.
I know here in Australia, there are vaccines that are not in the required schedule that many doctors recommend for parents.