Sleeping on back question?

Erica

Is it okay to sleep on my back as long as I’m sitting up? It helps with heartburn, I can put a pillow underneath my legs to help my lower back, and also my hips get very sore when I sleep on them from arthritis.