Is there any risk of contracting athletes foot if you never go to locker rooms or indoor pools?

Yes. Atheltes foot fungas can reside on any moist surface. You are decreaseing your chances by not exposing your self to pools and locker rooms that have a high amount of traffic from people and moisture.
Lower than if you do. Just keep your foot dry and clean. Do not worry.