Laying on belly 20 weeks

I have really bad back pain and laying on my side or back makes it worse the only way I can relive the pain is laying on my front, but I use pillows so I'm not laying on my belly it's so it's just hanging, is this still safe?