Safe while pregnant?

Is Imodium safe while pregnant? I’m 8 weeks if that changes anything. I have my first prenatal appointment today and my stomach has been messed up all day. I know it’s better to let nature run its course but I also don’t want to miss my first appointment. I think it’s just something I ate too, I know it’s not a stomach bug or anything.