Yorkies are little Houdini's!! They are very stubborn and tenacious and will use all their might to get out if they want!! When my little one was a pup she would scale a 36" baby gate and we couldn't believe she could do it!! They only way he won't be able to get out is if you put something slippery like a piece of plastic in their so he can't grip it with his little nails!! Good Luck!