Any move can be learned by Smeargle, which is why his stats are so poor.
Originally Posted by The Pokemon Ninja
And yes. You can even sketch transform if your Ditto is faster.
Transform Smeargle is a decent option in the metagame, provided you EV train his speed so he can Transform without dying