Turning a lot in sleep

I just have turned from one side to the other all night with sore hips. Probably a silly question but does this do anything where the baby is concerned? Harm in any way? I’m 22 weeks