Yes or no on the tdap vaccine during pregnancy?

My doctor told me I should get the T-dap vaccine while pregnant because it will pass on through to the baby but I’m not too sure how I feel about it did you get it?