Tdap shot

Chandni
Ideally when should you get the tdap shot. I'm currently 33 weeks and 3 days and my next appointment is next week. Will I still be ok getting it when I'm just over 34 weeks?