You should check with your dentist before taking medication before any procedure. NSAIDs are usually given after a root canal.