It makes sense. I can become easily depressed when life is running moderately smoothly. Maybe it's because I have too much time to think. I find that if I have a mega problem my survival instincts kick in and the sheer act of fighting to overcome the problem will raise my self-esteem considerably.
As for anxiety itself, well, it helps to realise that all anxiety is hypothetical!