Yes - sadly, Tolstoy suffered from depression during his life, largely between the periods of writing War and Peace and Anna Karenina - his two most famous works.