Someone please HELP!!!!

I started my period May22 and it ended May26 and on May27 my boyfriend was playing around and he put his tip in for not even 10 seconds he did not cum or anything today is June 7 could I be get pregnant? Or how soon can I take a pregnancy test ?