whooping cough vaccine

Were any of you ladies told, while pregnant, that you should get the whooping cough vaccine due to supposedly a lot of newborns were getting sick at birth from their mothers lately? If so, did you get the shot and did it affect you in any way?