6 months and Pedialyte??

My son is 6 1/2 months old and just had his 6month boosters on Friday. He also caught a stomache virus in the same 48 hours and I just took him to his doctor this morning and she said to keep him hydrated since he's not eating much and has diarrhea. What I'm wondering is if he can have a little pedialyte at this age?