Vaccination does not prevent an infection, since you have to be infected for any vaccine to work. What it does is give your immune system the tools it needs to recognize and fight an infection. The good thing is, for the flu you feel like you have the flu almost right after you get the virus...