Imodium while pregnant

Can I take Imodium while pregnant I’m 6 weeks