Yes, you should avoid sleeping on the floor as much as possible. It can make you cold and make your body stiff as well. You will be welcoming a lot of diseases if you start sleeping on the floor without any protection.