It allows memory b cells to remember the virus and that makes the virus completely immune. So, if there were a real situation in which the individual got the real form of the virus, then the immune system would act quickly in neutralizing the situation; hence, why vaccines are very important.