Can depression cause epilepsy?

Is there any way that depression can cause epilepsy? I mean in depression there is a chemical imbalance in the brain.