Black in the stool (poop)

What can cause black in the stool ? I've had constant abdominal pain today and when I used the bathroom I saw black in the stool? Should I be worried?