Welcome to Healthcaremagic.
No, the pain in the shoulder is not related to the root canal treatment
.It could be due to spasm of the muscles in the shoulder.
Do apply DICLOFENAC
gel over the affected area this will relieve you of pain .If doesnt help then you may have to get it examined.
Wish you good health.