Hi.. Yes, an episode of infection can reduce cause reduction in the erectile functions of the penis.. It will certainly improve once you get over the infection.. So relax, do not worry.. Eat well and take plenty of fluids.. You can take multivitamin supplements to make you feel better....
It's almost certainly just a mild case of dehydration, brought on by your illness. Keep your fluids up, and it will probably return to normal.