Iron supplement started period early??

I was prescribed iron supplements after blood work suggested I’m anemic, likely due to my period. I took one around 2 and started spotting just 4 hours later. Can iron supplements make your period start that quickly? I’m just very surprised since I never spot in the middle of my cycle, my period is still 2 weeks away