Will kidney infections make you gain weight?

Possibly from edema. Possible to retain fluid with severe kidney infection exibited as puffy eyes & ankle swelling. True weight gain from fat deposit or muscle mass increasing does not occur.