Staying active before surgery may do more than strengthen the body for recovery - it may protect the brain.