Help could I have been pregnant?

I had what I thought was a light spotting period about two weeks ago and light cramping but was late for my normal time however also around that time i started the mini pill which is not normal for my periods then this week I started spotting with horrible pains that no medicine could take away and started bleeding more and more and today had this. Could this have been a miscarriage?