Vaccines are small doses of a virus that are put into the human body.
Common annual flu shot is an example. It doesn’t mean the person won’t get the flu, it only means the human body now has some antibodies to attack the virus. Results in the human getting less sick.
Basic science.