Yes! In a report that analyzes 14 studies on chocolate that was published in Frontiers of Nutrition, it was found that brain function may be improved tanks to the antioxidant compounds in cocoa. One study showed an uptick in working memory for two hours after consuming cocoa flavanols. In another study, the antioxidant compounds were reported to counteract cognitive impairment from a poor nights sleep.