It's a little more nuanced. Causation can be inferred in an experimental design. If the researchers can manipulate the independent variable (the vaccine) using an experimental and a placebo group, and then they can measure a statistically (and clinically) significant difference, then we can assume that this is not just correlation.