Can working out induce a miscarriage ?

S

I am 4 weeks and two days pregnant and just found out however I recently started working out again about two weeks ago after a 4 month hiatus from the gym. I just did a leg workout and after the workout I was a little dizzy for less than a minute but am also getting slight pains in my abdomen they don’t feel like cramps more like subtle sharp pains almost like growing pains. Anybody ever experienced this ? My doctor cleared me to “moderate” exercise but I’m not entirely sure what moderate means either so not sure if I went too hard today and I’m worried now .