Do teeth with cavities work?

Do teeth with cavities work?

Some teeth with cavities work. It is dependent upon if the nerves and blood supply are still viable.