Hi, thanks for using healthcare magic
In general it is recommended that during pregnancy
women sleep on the left because this improves blood supply to the baby.
It is ok to rotate your position occasionally but you may want to avoid sleeping on your back persistently because it can negatively affect circulation.
You can switch in between positions if it is uncomfortable for you.
I hope this helps