It is true that total energy is conserved under these conditions. But more can be said because of a special property of the gravitational potential.