It could be. Some people find that sleeping with a pillow between their legs (particularly while side sleeping) helps hold the legs and hips in healthy alignment, which also supports proper spinal alignment. This could potentially reduce knee, hip, or back pain, though it’s important to note that a leg pillow isn’t a guaranteed pain reliever.