Do German Shepherds eat their poop?

Some do and if yours does the vet has medicine to put in their food so they will quit.