I think any and all pain is related to mood swings.
I suffer chronic pain myself (the Army gave me SIJ dysfunction, torn tendons and degenerative joint disease), and although I have other depression issues, these do not help.
If your pain is persistent, it could definitely be related to your depression. Still, you should see another doctor... maybe a psychologist, too. I, of course, am not qualified to diagnose anything.