It's generally recommended to use a pillow if you sleep on your back or side. However, what's most important is that you feel comfortable and pain-free in bed. If you have neck or back pain, or if you have spine condition like scoliosis, sleeping without a pillow may be unsafe.