Sleeping on floor during 36 weeks of pregnancy

Divya
Is it okay to sleep on ground during 36 weeks of pregnancy... Please let me know the consequences of sleeping on floor than on bed....