Absolutely any infection affects adrenal function -- the purpose of the adrenals are to 'keep things going' in the face of immediate peril and risk of perishing, including hypovolemic and inflammatory states while the immune system is conquering an infection.