Hi thanks for your question.
Your two year old daughter got injured in an accident and now developed fever
.Yes this fever could be due to his injury
.Fever means the wound has got infected.Your daughter needs antibiotic and analgesic
anti inflammatory drugs (pain killer)
Consult his Doctor for prescription of antibiotics.
Hope this answers your question.