i had that in the beginning of my period, i was worried too and ended up going to the doctors getting everything checked out and they said it was probably implantation bleeding. It doesnt necessesarily mean a miscarriage though.
You may have irritated your cervix while having sex which caused the bleeding, dont have sex for a little while and if the bleeding continues then it could be something to worry about, but mention it to your doctor it wouldnt hurt