anemia/irregular bleeding

Can anemia cause me to have prolonged periods? I've been on my period for almost a whole month now & I was wondering if it could be contributed to anemia and if taking my iron pills could possibly help that in any way.