If you are on birth control, that should reassure you anyway.
Precum isn't very efficient at causing a pregnancy to occur even with penetrative sex, and the chances are decreased even further to almost negligible when he has only rubbed his penis against your vagina. I am pretty confident you should be fine.