Probably. Note how much blood there is, any changes in eating or drinking habits, any changes in pet's behavior and call a vet for further evaluation or an appointment.
this could be caused by a few things. It could be internal bleeding, or possible the fecal matter is tearing the anus. Either way, if it persists go to vet.