Implementation is everything in this kind of thing. Probably works best with a timeout, or a distraction task, or a reminder about the rules.
This area has been reasonably well researched - see Prosocial Design Network's summary of the research on "Preliminary Flagging Before Posting".