Sleeping at 24wks

Aija
Is it really bad to sleep on your back? I heard it was because something "I can't remember what exactly" is pressing on the baby making it hard for them to breath. Is that true or is sleeping on your back okay?