Did you mean to say collar or harness? Leashes attach to both so your question is a little confusing.
If you meant to ask if collars were okay, the answer is no. Yorkies and other toy breed dogs have delicate throats and are prone to a condition called collapsed trachea. Always use a harness (with a leash.
LOL!)
Collapsed Trachea in Dogs