It's best to boil a solution of sugar, then cooling before adding to the fermenter. Not doing so increases the odds of infection, but infection is far from a certainty.
What's done is done. See how it goes. Certainly don't throw it out. I'll bet your fine.