Vaccines operate on a completely different principle....You get exposed to live but neutered or dead bacteria/viruses so your immunoresponse mechanisms learn how to fight it if you ever come across the full strength version. It has nothing to do with homeopathy.
Vaccines and the entire concept of hormesis is something you should research when you get the chance.