Pain after root canal

Is it normal to have pain after a root canal? I've never had one before today so I don't really know what to expect