Hi & Welcome.
Yes, it can cause harmful interactions.
Based on the history given you seem to have developed harmful drug-drug interactions.
Tramadol if taken along with Imitrex can increase the risk of a serious condition called the
serotonin syndrome which is characterized by confusion, hallucination, seizure, extremely high BP,
increased heart rate, fever,
excessive sweating,
blurred vision, muscle stiffness, tremor,
incoordination, stomach cramp, nausea, vomiting, and diarrhea.
In severe cases it may result in coma and even death.
Serotonin syndrome can also occur if Zoloft is taken along with Imitrex or with Tramadol.
So in view of the possibility of having the above serious condition you should consult your treating doctor to review the prescription and to prescribe an alternate effective but safe treatment for migraine and depression like Valproic acid or Carbamazepine.
Hope this will help.