thanks for your query.
With what you describe, pregnancy
is a very remote possibility.
Pregnancy theoretically occurs only if semen enters the vaginal canal.
That doesnt seem to have happened in your case.
To be sure however, please take a pregnancy test if your girlfriend skips her period.
Please ensure that you have protected sex in the future.
It allays fear of pregnancy and protects against STD