If the tdap vaccine is good for 10 years do my family members need to get it again if they have had it in the last 10 years?

I am due in a few weeks and worried about whopping cough. All of my family members have been given the tdap vaccine in the last few years. That is protection for the baby right? I know I have to re-get mine because I am pregnant.