Anything with a substructure has excited states. Molecules, atoms, nuclei all can absorb photons which causes them to make transitions to excited states. When they jump from an excited state to a lower energy state, energy is emitted in the form of photons. Do proton and neutrons (having electrically charged quarks inside them) can have excited states?