Sleeping on back/in recliner

A

Seen people post this and want to clarify. Is sleeping on your back fine if you’re in a recliner or propped up at an angle with pillows? I’m dying. I didn’t sleep a wink last night. I finally slept this morning for a couple hours by leaning back on a pillow I placed behind my back without being flat on it. Help!