Sleeping positions

Am I the only one but sometimes I’ll find myself sleeping on my back . Has anyone else done that and was your baby okay? I’m currently 24 weeks pregnant.