Whatever heals our mind or body will, probably, be very good for us. But let us not deceive ourselves, short term fixes are not the same as total wellness.
This is a good article about Memory Foam mattresses and their potential toxicity. It's a bit technical, but worth the read. It certainly is thought-provoking.