Need help !!

OK so I had my period on the 16th of last month and it lasted 5 days and on the 25th of last month I had sex with no protection and it says I was fertile and I have had some pains in my lower right side of my stomach could I be pregnant and when is the best time to test ???