When you get the whooping cough vaccine during your pregnancy, your body will create protective antibodies and pass some of them to your baby before birth. These antibodies will provide your baby some short-term, early protection against whooping cough.