I think i had miscarriage

Few months ago I restarted my birth control but within a week I had a sharp pain and a clot came out. I assumed it was a side effects with my birth control but could it been miscarriage.