It can. Some of the symptoms of depression are poor focus, memory issues, and sleeping problems. If you have one or more of these types of symptoms, it can most definitely affect reading comprehension. Here are some links to a few articles about this, for more information.
https://www.health.harvard.edu/blog/sad-depression-affects-ability-think-201605069551