Is it okay to take imodium (loperamide) following a cholecystectomy?

Yes. Diarrhea is a common side effect of having your gallbladder removed. The fluid that is usually stored in the gallbladder can enter the bowel as bile acids and stimulate secretion of fluid resulting in diarrhea. Common treatments include Cholestyramine (binds the bile acids) or Imodium (loperamide) (slows down the bowel allowing for reabsorption of fluid).