advice

need some advice, we went to the ER the other day due to a fever and a cough. the doctor said he was okay and give him some pedialyte just to keep him hydrated. he’s 4 months old and i’ve already given him a little, not giving anymore because his fever went down. just curious if it was okay to give him? he seems fine