Compost heaps tend to be quite warm anyway, that's because decomposers release energy when they carry out aerobic respiration. However, it's important that the compost does not get too hot. If that happens then the enzymes and decomposers can denature and the decomposers can die.