This phenomenon is known as the Peltier effect. When a current is passed through a thermocouple, one junction becomes hot while the other becomes cold, meaning heat is evolved at one junction and absorbed at the other.