It is not only ionization, excited electrons can jump to higher orbitals and later jump back to their original places, without leaving atom. These orbitals have specific, characteristic energies, just like ionization energy is characteristic of an atom of a given element.
So yes, you are right, but there is more to it.