No, because you need to be able to exploit a temperature difference to convert heat into other forms of energy.
Conversion efficiency is proportional to the difference in temperature, so for most wate-heat scenarios, electricity generation is either non-functional, or barely functional, but impractical. In a lot of scenarios you end up interfering with the efficiency or longevity of whatever you were trying to cool in the first place.