If I had my ileocecal valve removed during surgery, will that cause diarrhea?

Maybe. Right colon surgery or surgery that removes the ileocecal region can result in diarrhea, but it is usually temporary. There are options to use Metamucil fiber supplements or sometimes medication such as immodium, but only if it is alright with your surgeon.