Yeah, conjugation gives you a pi bond every other carbon so it's very easy for electrons to move from HOMO to LUMO orbitals, reducing the energy difference between these two. This results in longer wavelength which happens to be in the visible spectrum.
For uncolored compounds, they still of course give off photons but just in shorter frequencies that we can't see.