The longer a dog goes before neutering, the more difficult it will be to train them not to mark in the house. Spaying or neutering your dog should reduce urine-marking and may stop it altogether. ... Because it has become a learned behavior, spaying or neutering alone won't solve the problem.