It's one theory among many. The flip side is that autoimmune diseases are often triggered by pathogens (MS from EBV, diabetes from HEV, and more). Air travel and urbanization help pathogens spread. My understanding is that it's not yet clear which are beneficial and which are harmful, but there's ongoing research.