Potty Training is all what you would rather deal with. Yorkies can be stubborn to potty train so sometimes for some people the doggie litter box works great. Others prefer pee pads. I would highly suggtes having a crate and a play pen. Crating really helps with potty training. Plus, crate training is one of the best things you can do for you dog as they'll be using them all their lifes for vet stays, grooming stays, and if you use a petsitter, most petsitters put them in crates for bedtime at night. I know I do. If you search, there are many wonderful threads on getting and raising yorkies.

Btw, welcome to YT!