Flu shot

Hi! My OBGYN told me I should get a flu shot to protect myself and the baby. I recently had a friend tell me that she has heard that flu shots lead to autism in children if you get a flu shot while pregnant... What is everyone's thoughts on this? I've never had a flu shot before but I want to do what the doctor tells me, please help!!