Yes! It most definitely affected me. But in different ways over the years. Alot of my depression is so entangled in my anxiety, its difficult to separate the two, so I apologize but there's going to be a lot of anxiety stuff too.
High school - I was absolutely terrified of other people and believed that I was socially unacceptable. In my eyes, the only thing I could ever possibly be good at was school, so I spent most of my energy on it. Especially math classes, where everything was clear and nothing subjective, it was so easy to get lost in and just study around the clock. So at least academically, I would say my depression/anxiety "helped" in high school. I graduated at the top of my class, got into all the schools I applied, won lots of academic awards... I was THAT kid, haha. Incredibly unhappy, but successful.
College - Went to a difficult college, and suddenly realized I was good at nothing. Still afraid of people, but also now afraid of professors and classes. Spent a lot of time hiding in my dorm room alone. Got caught up in a lot of bad behaviors (drugs/SI/eating stuff) I think mostly to distract myself from how much I hated myself. My grades varied wildly in college. Some semesters I rarely slept, and just did homework ALL the time. In those classes I did well. But other semesters, I was constantly drugging myself to sleep and did absolutely nothing, so I got bad grades.
Grad school - Similar to college, except the situation worsened. Was supposed to work in a lab and do a thesis, which gave me panic attacks. I was terrified of my advisor. Did well in classes, but every time I tried to go to lab I would wind up in the bathroom throwing up or passing out. Felt like a failure, and got deeper into bad behaviors. Constantly on drugs, and a few suicide attempts later, I was in a psych hospital. I got out, and am feeling better, but still haven't finished grad school.
I think its interesting - like honestly, if I wasn't depressed, extremely anxious, and having low self-esteem, I wouldn't have done nearly as well in high school as I did. But obviously it hurt me later in college and grad school. hmm..