In a new study, researchers found that being physically active during all phases of adulthood was associated with higher cognition.