Stewie doesn't hike his leg. Get your little man neutered ASAP and train him to potty outside if you want to minimize the chances that he will do that.
But also think, if you have your heart set on a female, 2 months really isn't that long to wait. Yorkies could live beyond 15 years - waiting 2 months to get the sex you want is no time in the grand scheme of things.
Also, welcome to YorkieTalk