Ob-Gyn questions? Ask a gynecologist online.
Regarding your question yes it is possible that you could be pregnant due to the unprotected sex with your boyfriend. However it could be the other way also. Both are possible.
There is just a few days gap between these two events. Hence there is almost a 50% chance of either of them. Please describe your menstrual cycle and when did you expect your periods this month?
If you have no further questions, please rate the answer with a positive rating.