Not so. Fresh clean air and sunshine are more beneficial that stuffy recycled air. We all need to build up our vitamin D after the winter.
You’re thinking of a different sort of exercise, body building rather than getting your fluids moving. This is more relevant for the older generations.