Is emotional/mental health in pregnancy linked to autism?

I have mild depression and severe anxiety. I've always had it since I was a child. Now I'm 14 weeks pregnant and throughout my pregnancy I've been through anxiety, depression, and stress that my family is causing me. I got all first trimester testing and genetic screenings done but I feel so guilty and terrified of putting my baby risk for other mental disorders because of everything I am going through in my pregnancy. Has anybody suffered mental health throughout pregnancy or had traumatic experiences and their baby turned out fine? Friends and family keep telling me the baby feels whatever I am feeling. They keep saying I'm putting baby at risk for issues due to my thoughts that I cannot help because of my illness.