Flu shot.

Is it ok to get a flu shot while pregnant? I'm in my first trimester. They do free flu shots where I work and I would like to get one if it's safe. I'm going to ask my doctor when I go but they are doing sign ups soon and I was hoping for some info.