Answer is: yes, atomic emission spectra of cobalt be the same on Earth as on the moon.
Differente gravity or no atmosphere on Moon don't affect emission spectra of elements,
Emission spectrum of a chemical element is the spectrum of frequencies emitted due to an atom making a transition from a high energy state to a lower energy state. Each element's emission spectrum is unique.