Yes. Thermal energy always moves from an area with a higher temperature to an area with a lower temperature. So, if you place a block of ice in contact with a substance that has an even lower temperature, such as liquid nitrogen or dry ice, then thermal energy would move from the ice to the colder substance.