Well... I don't really know the answer to this.

My intuition would tell me that yes it's certainly possible having been ill, especially for as long as you were, could result in your feeling down & depressed.

Chances are being ill for that long probably drained a fair amount of your "resources", so to speak. I know just when I don't sleep well for even a night or two (which is a common occurrence for me) I become noticeably more down & depressed as well as more anxious & argumentative too.

But that's all just my personal, non-professional opinion on the subject. (Please don't take it to the bank, as we used to say.)

I'm sorry to hear you've now caught another cold. Hopefully this one won't hang on for three months!

I wish you well...