Sleeping on your back is perfectly fine, provided you are comfortable that way. Many pregnant women are not too comfortable on their back, as it's sometimes harder to breathe that way as the pregnancy progresses. As a matter of fact, sleeping at all is a good trick in the few weeks before you give birth! You should sleep in whatever position is best for you individually. For some women that's even in a semi-sitting position at the end of pregnancy.