no judgement, please.

I’m a high-risk pregnancy after a loss in my late second trimester a few months ago. I will be having a cerclage put in at 12 weeks for IC. Before I found out I was pregnant recently, I was actively smoking marijuana in different forms, and up until 4 weeks 5 days was the last time (the day before I found out I was pregnant) could this in anyway harm baby?