Flu shot?

AL

I’m 36 Weeks and I remember when I was pregnant with my daughter my dr recommended I get a flu shot. He hasn’t mentioned anything about it this time around. My husband has the flu so I went to pick up his meds and I asked the pharmacist he said it’s not recommended to get a flu shot while pregnant or lactating. Did things change in three years where you’re not suppose to get it while pregnant anymore? I see my dr next week so I will follow up with him then. I’m just curious if anyone else got one and if you did when?