Vaccines were known to be effective and accepted long before the mechanism of their action was even remotely understood. It's actually very well understood now, which makes the idea that any person in a position of authority would ever speak out against them all the more perverse.