Considering we do not know exactly what the problem is that you are dealing with, it would be best if you turned the water off to the supply to the toilet. If for some reason you were to torque on the shutoff valve, slip and fall against it, or hit it with a tool, it is always safe to shut the water off. This 2 minute adjustment could save you from a very pricey fix if the water were to leak. Always be safe, not sorry.