It’s important that the base (foundation, box spring, or platform bed) is suitable for the mattress. There is more information about different type of bases used with different types of mattresses and some good sources in the foundation post here. With a memory foam mattress I would personally choose a slatted foundation or platform bed vs a solid surface so that there is rigid even support under the mattress but it still has airflow under the mattress as well (see post #10 here).