is there a link between epilepsy and depression?

I have been taking dilantin for over 20 years of my life due to epilepsy. Someone told me that my depression can be linked to this. Is this a possibility?