Having pertussis (whooping cough
) doesn't grant lasting protection & neither does the childhood shot.
Unvaccinated babies, especially under age of 2 months, have no protection. It's not transmitted from mom. Adults carry the disease and put all babies at risk unless vaccinated. Pertussis is an annoying 3 month cough in grown-ups but deadly to infants. They can literally cough themselves to death.