For instance, since depression often precedes opioid use for chronic noncancer pain, it's possible that patients taking opioids for such pain are still depressed. And if that is the case, "it is important that opioids not substitute for, or interfere with, treatment of the depression." Also, "pain and depression are interrelated in a bidirectional fashion (i.e., depression can worsen pain, and pain can worsen depression), and treatment of both share the common ultimate goals of improving functioning and overall quality of life."