Black stool

So I’ve noticed that I’ve been having black stool ... I started taking iron supplement pills about 4 days ago can this be why my stool changed colors ?