It is very very unlikely that you got pregnant from that.
Even if he masturbated, he had to touch many many things before he got his finger inside you. No sperm can survive that.
Relax, enjoy your last days in high school and your period will come. it pretty much sounds like your PMS is here and you will start soon.
Please be careful when you are having fun!
Best of luck.