Yes and no
You asked a really great question.
Yes, fevers do help to kill the pathogens and, as such, are good. However, if the fever
gets too high, then it starts to cause bad things in us, including swelling in the brain and damage to other organs. So its ok to leave a fever alone so long as it's not too high.
Answer assisted by David Miller, Medical Student