Memory foam pillows can retain heat due to their dense structure. However, many memory foam pillows are designed with cooling technologies, such as gel-infused foam or ventilated covers, to regulate temperature and promote airflow.