Flu shot yes or no??

Is it okay to get a flu shot while trying to conceive!? My daughters doctor advised me to get her a flu shot and me as well. But I didn't mention that I was trying to conceive. Should I or shouldn't I get a flu shot?