Should I replace a toothbrush when a child returns to class after being ill?

Yes. The illness might have been in the incubation stage when the child last used it.