Mums depression?

When I was around 6 months old my Father died of cancer. Obviously my Mum would have grieved and most likely have suffered depression. I have had very minor anxiety and depression problems from the age of about 10 and they are worse to this day (I am 15) including panick attacks and self harm. I was wondering where this depressions and anxiety came from and I thought perhaps as a young baby I was affected by my mothers ill being when I was very young. Is this a possibility?