Yes. For one, the electron is moving around the proton. So, it has some energy on account of its motion. Also, because of the electric force between the electron and the proton, there is another contribution to the energy.

You now see the same atom, but, with different orbits. The labels on the different orbits tell you what the energy of the electron is if it is on that orbit.