Cancer is one of the cause for blood in stool.
But cancer is rare at your age, benign causes are more. If symptoms are persisting get an endoscopy.
Next Steps
Mention blood colour. Time point of blood passing (before motion, during motion, after motion)
Health Tips
Persisting symptoms: Get UGI endoscopy and colonoscopy