immodium

i’m taking my glucose test this afternoon and currently have diarrhea.. i’ve been up all night back and forth to the restroom and it’s making me nauseous as well. am I allowed to take some immodium before I take it today? or I can’t take anything? I am normally told to fast for mine but my doctor didn’t tell me to do that. I had a different doctor my last pregnancy