should I take the flu shot if I'm pregnant

should I take the flu shot if I'm pregnant my doctor was telling me about it I never took the flu shot went I wasn't pregnant. Do you recommend that I take it or no?