If the decay is deep, generally it is removed and filled under the effect of anaesthesia. Post the filling, you may have sensitivity for a day or 2. If it increases or persists, you may need to get it checked as a root canal may be needed if the decay has reached the nerve.
Next Steps
Wait for a day, if pain/sensitivity increases you may need to visit a dentist to check if you need a root canal