a vaccine can helps prevent the infection of a virus