Pain is linked to depression. It can be hard to stay upbeat if you hurt badly. Pain can isolate you if you can’t get out and that doesn’t help depression at all. Opioids are often given to patients in pain and depressed ones tend to get it a lot. The problem with this is that opioids are ighly addictive and having that problem can make depression worse because you feel lost and hopeless about it.