Different vaccines are used in different ways. It's not unheard of for those that'd be most effected by a disease to be protected by vaccinating everyone else, because the disease and the vaccine are both too dangerous for the at risk people.
All vaccines represent a risk/reward balance. That's what Stage 3 and 4 testing is for, to see if the risk/reward ratio is right for the vaccines in question.