Need more info
treatment is usually needed to treat an infection.
On occasion it is required for restoring the tooth to function. If the pulp (organ found in tooth) was exposed due to depth of decay root canal treatment is appropriate. Please offer more information that lead up to your treatment. I am unable to offer any further opinion.