Depends on how it is done, if it is relatively minor the referee is going to look like a bit of a killjoy / jobsworth if they caution for it. Whereas if they have run across the pitch, or down to the corner flag, it becomes a much more obvious caution, especially if the opposition react to it and there is a row.