Can you discover unknown elements by calculating their spectra?

physics, astronomy