It's recommended by doctors to take these 2 vaccines to protect yourself and the baby so definitely safe. Actually it's recommended that all adults who will take care of baby should take whopping cough vaccine since it's dangerous for small babies to contract it