For some people, yes. A firm mattress helps keep the spine aligned for back and stomach sleepers, which can reduce lower back pain caused by excessive sinking. However, for side sleepers, a firm surface can worsen pressure points at the hips and shoulders. A medium-firm mattress is often considered the best choice for back pain across different sleep positions.