Is sleeping on my back dangerous?

Dear Doctor, I’m seven months pregnant and seem to find difficulty getting a comfortable position as the days go by. I can only sleep sideways and this makes my hip area hurt seriously the next day.
no image
Dr. Rachna Pande