Sleeping position on pregnancy

It is fine to sleep on my back and my right side? I heard that it’s good and safe for the baby to sleep in the left side ...