For a electron to be promoted from one energy level to a higher energy level it has to absorb energy. If the electron decay back to the initial energy level will emit a photon with the a energy equal of the difference between the two energetic levels.