Flu shot while pregnant

I got the flu shot at 36 weeks, I’m 38 now. And i just read an article that said the flu shot while pregnant can cause the baby autism or stillbirth.

I don’t believe vaccinations can cause autism in babies but what about when I’m pregnant with him, and he’s still developing? And can the flu shot cause stillbirth? I thought it would be a good idea and would protect my baby but could it harm him? I’m sorry if I sound ridiculous this just made me worried.