vaccines do not treat viral infections. they have a little bit of the viral infection in them and helps your immune system prepare for if the virus enters your body in a larger amount that can get you sick that is why side effects of the flu shot are feeling sick as if you got a mild flu.