Well, the ones who don't get vaccinated aren't immune to the disease so they can still get it from anywhere
All a vaccine does is strengthen your immune system, however, if you don't get the vaccine you can still be in danger of getting a virus from someone who did get the vaccine.