Yes. Memory foam mattresses conform to your body, helping to keep your spine in a healthy, neutral alignment in any sleep position.
Consider your preferred sleeping position when shopping for a foam mattress. If you’re a side sleeper, a softer foam mattress may help reduce pressure on your shoulders and hips. If you sleep on your back or stomach, a medium-firm comfort level or firmer will prevent your hips from sinking too deeply into the mattress.