When to get flu shot while pregnant?

Do you have to wait until a certain point to get it or doesn’t matter? I’m 5 weeks going to dr tomorrow