Walking can have beneficial effects on cognitive performance, but these effects are influenced by sex and genetic status.