Usually pretty easy to tell if it is cosmetic or not - ask your dentist.
Generally, I would assume that if it is neccessary work to stop your teeth decaying and / or falling out (ie, fillings, root canal, etc) it is nessecary. If it is to 'look good' (ie, bleaching, possibly braces, etc) then...