Contrary to what you read on the internet, the goal of a root canal treatment is not to cause you pain but to help you relieve it.
Most people can expect to feel a mild pain that should subside in a few days following the treatment. Extended periods of pain could indicate that something is wrong. Contact your dentist as soon as possible if the pain persists.