yes if they are aerobic and no if they are anaerobic
general meaning of aerobic is - needs oxygen to survive.
google anaerobic bacteria
and anaerobic fungi and you will get lots of hits like:
Biology of gut anaerobic fungi.These fungi have been assigned to the Neocallimasticaceae, within the chytridiomycete order Spizellomycetales. The anaerobic fungi of domestic ruminants ...