just found out I'm 2 months pregnant and I've been smoking weed!!

I just found out yesterday that I'm 2 months along. I suffer from anxiety, depression and really bad insomnia. So I've been smoking concentrates or "dabs" on a daily basis for years. I'm freaking out right now. Could this have any affect on my baby??