a vaccine is basically a small amount of a virus that is either dead or weakened. Due to the fact that the virus is in an incredibly weak condition or just dead, your immune system is able to analyze the virus and kill it without you getting sick. so i guess the answer is true.