Flu shot

Vanessa
Second trimester mommas or any moms in general, is it safe to get a flu shot when you're 21 weeks? I went with the army clinic and the nurse advised it was perfectly okay no matter what trimester and I haven't ran it by my OB yet. Thoughts or previous experiences? Thank you.