Correct. As simple as it seems, this is the meaning of "conservation of energy".