Thoughts on flu shot while pregnant

My doctor advised me, husband, and our 5 year old daughter to get flu shot before baby #2 gets here. I’m 24 weeks now, and my baby will be born during flu season. Little kids have already died from flu this year. I am not anti vaccinations, but I’m open to hearing everyone’s opinion.