Imodium safe?

Is Imodium safe to take 10 weeks