flu shot safe?

Erin
Is it ok to get a flu shot when trying to get pregnant and/or getting one while not knowing if your pregnant yet or not?