This formula is not correct in quantum mechanics as the angular momentum magnitude is described by the azimuthal quantum number, but the energy levels are accurate and classically they correspond to the sum of potential and kinetic energy of the electron.