Question need an answer

Brittani • Im 23 years old and im trying to have a baby i misscarried last year and was heartbroken i wanna start a family with my fiance
My doc recommened I get the flu shot before my next appointment but I don't wanna do it if it gnna hurt the baby opinions or advice please