Vaccines don't actually make you immune to a virus. Basically, the way most vaccines work, or at least the way Pastuer originally did it was to give a person the weakened virus to help your body build up antibodies to the virus. Then your body just fights off the disease naturally.