Thanks for the query,
If you have had sex 2 days prior to the onset of your menses and the partner haven't ejaculated inside the vagina then the chances of conception are negligible. Moreover if the menses had resumed after 2 days then it further negates any possibility of conception as the endometrium which would have paved the way for implantation has been shed off during menses completely.
So rest assured, you shall not get pregnant.
I hope i have answered your query,
Wishing you safe sexual practices,
These Q&A’s are for educational purposes and should not be relied upon as a substitute for medical advice you may receive from your physician. If you have a medical emergency, please call 911. These answers do not constitute or initiate a patient/doctor relationship.