Good line of logic.  But/and it is possible to completely knock out some pathogens so that no one gets diseased if everyone gets vaccinated.  For example the Polo virus has been defeated in most places on the planet due to an aggressive vaccination program.