Simple: Yes and No!
Once a cavity
(carious lesion) is diagnosed, the decay will need to be removed and a restoration placed.
Typically most cavities are anesthetized and no sensitivity is noted by the patient, just vibration from the handpiece. Larger restorations with infection or cracks can have sensitivity but usually manageable. Be sure to tell dentist if pain so dentist and team can manage discomfort.