My doctor told me they Prefered if I slept on a side rather than my back because it can cut off circulation and blood flow to baby and possibly pinch nerves in your back
I'm 19 weeks and I sleep on my back now and then.. I'm sure it's ok.. the midwife n doctor would tell u not to do it if it was dangerous.