Yes!  It is because of this that recommendations for avoiding athlete’s foot includes wearing sandals in public showers and at public pools.  It is also recommended that you don’t share shoes or towels.  Some people are more prone to acquiring athlete’s foot due to immune system deficiencies and also due to the pH of their skin, but being exposed to fungus in various places increases your risk either way!

What's the harm with athlete's foot?