Positions to lay

I hear a lot of different things from people, but I tend to sleep back and forth all night long from left side to right side. Is this okay?

I never liked sleeping on my back when I was not pregnant, but now being pregnant I wake up on my back a lot.