Sure, but not getting sick also won't cause your body to "learn again to fight against viruses" as OP claimed. Regardless of whether you wear a mask or not.
This is out of my expertise but I have a hard time believing that
same here... at a species level, I would expect evolutionary benefits if immunity increased with exposure