Even though the plug and the cement are designed to dry in a matter of seconds, you should at least wait for a minute or two before you cut all the excess material. This is necessary in order to be sure that the application has been successful.
It’s always a good idea to wait around 5 minutes or so before you decide to trim anything, just to be 100% sure that everything has gone according to plan.