Yes, the given statement is correct. When charge flows through a conductor, its electric potential energy decreases. This loss in electric potential energy appears as increased heat energy of the resistor. Thus, heat energy is developed in a resistor when there is an electric current in it.