You could do worse than to read the wikipedia page about vaccines, which has this passage:
"Vaccines can be prophylactic (to prevent or ameliorate the effects of a future infection by a natural or "wild" pathogen), or therapeutic (to fight a disease that has already occurred, such as cancer)."
Please provide some citation for this outrageous claim that the point of a vaccine is to NOT provide immunity from infection.