Flu shot in 2nd trimester or 3rd?

firt time mommy here

Does anyone know when you're allowed to have the flu shot?