Just taking this a little farther:
At my former place of work, there were federal courts on the next floor, and at least one of the old judges would frequent the men's room on my floor -- you could hear him clearing out every orifice while he was in the stall -- truly! Blowing his nose, hacking up sputum, coughing, peeing, taking a dump/farting (well, I couldn't hear him cleaning his ears out, I guess...)
Very unappealing noises!
(but back to the original question -- yeah, better to spit into the urinals than on the floor.
In Italy, there used to be signs in public places: "La persona civile non sputa" ("a civilized/polite person doesn't spit") which is what I always thought, too!