If you see blood in your dog's stool, always contact a veterinarian.
It's just a matter of whether you do so as an emergency or whether it will wait a short while.
As a rule of thumb, if your dog is unwell, not eating, vomiting, or lacking in energy, then contact a vet immediately.