When body experience these three stresses it produces brain derived neutrotrophic factor [1], which acts as a growth hormone for nervous system as a whole and also grows brain, in areas related to long term memory, higher cognitive functions (language, logic, spatial navigation, etc) and learning.
[1] https://en.wikipedia.org/wiki/Brain-derived_neurotrophic_fac...
It works as if you can build "thinking muscles" which will help in every aspect of life.
E.g., if you barbell squat, you most probably will also run faster and you also will be more stable. Squats are not directly related to running, but they help nevertheless.
If you do endurange training and/or intermittent fasting, you will be more cognitively capable. Endurance training is not directly related to thinking, but it helps nevertheless.
So, yes.
An exercise for general purpose thinking is an exercise.