The guy's back-story makes the dog seem more than capable of understanding that "shitting on the ship is a no-no." Same with peeing