In gen two, yes. Mimic fails but transform does not, and in a battle where smeargle knows more moves then just sketch it can copy and keep those, which can lead to some potential glitches coming from this. Copycat also fails.
Mirror move cannot be copied by sketch after gen 4, but before then it copied mirror move just fine.
In gen 9 I tested it and mimic fails, copycat fails, and ditto can't seem to use sketch so it they just struggle to death. Also, if a smeargle used transform it just fails, probably to prevent the same glitches from happening.
Source: the bulbapedia articles for transform, mimic and sketch