Circumcision question...gauze?

My son just had is Circumcision done and the doctor put on a vaseline wrapped in gauze. They told me to remove the gauze after 24 hours.

Is this safe? What if he poops or pees?