The influenza vaccine stimulates your immune system to recognize and attack an infection before it makes you sick.