Yes, it is important to shut off the water supply to the toilet before starting the replacement process to prevent water damage.