It is possible that sleeping on the floor may improve posture. Indeed, the spine is more prone to curving on a soft surface, so sleeping on a firmer surface may help align and straighten the neck and spine.