Is running a fever a sign of the body fighting infection?

Is running a fever a sign of the body fighting infection?