Whooping cough vaccine giving in pregnancy (Tdap) vaccine at the time of pregnancy protects the baby from getting whooping cough.
Vaccination is effective and safe, whether for the pregnant mother or the infant, as it adds protection to the infant in the first period of his life, before he can get the vaccination himself.