I've had male and female dogs (well, only Lucy) but she is soo loveable; I think it depends on the individual dog.
Neither of my male dogs purposely marked inside the house. Now outside, yes, they hiked their legs on every tree and shrub they passed. OK, and ONCE Ringo peed on the blanket we brought Lucy home with ~ but that was kind of understandable
Both dogs were neutered and both dogs were trained to go outdoors.