Yes. The law you are referring to is the First Law of Thermodynamics. When Greta mentions "thermodynamics" she is referring to it and to the Second Law of Thermodynamics, relating to the entropy of system where energy can be created spontaneously from nothing.