Traditional memory foam mattresses can retain heat due to their dense structure and how closely they conform to the body. However, many modern memory foam models incorporate cooling technologies like gel infusions, open-cell structures, or breathable covers to counteract heat retention and provide a cooler sleep surface.