Am I having a miscarriage?

I took a pregnancy test last night and it was the day before I was supposed to start my period and there was a very faint line. Well today I started what I think was my period I mean if I didn't take the pregnancy test I would of just assumed it was my period but since I got the positive pregnancy test the night before does that mean I'm having a miscarriage?