For sure. But even fake cameras, empty shells on the ground, and a dog warning sign (even with no dog) will also work pretty well, and you don’t have to scoop poop. These guys are looking for the easiest target in a neighborhood, and the mere sight of a shotgun shell on the ground will be enough to cause them to try elsewhere.
One person I know turned his doorbell into a warning with a digital recording of a big dog barking plus a shotgun being racked.