Is it safe?

Is it safe to lose weight during pregnancy? I’m 5’6” and weight 217 but weighed 211 when I found out I was pregnant. I’m 7 weeks right now, and I was in the middle of my weight loss journey when I found out I was pregnant.