it better to ejaculate on panties rather than inside her vagina. if she took them off and wash them , and none of your sperm could have got up inside her vagina, you will be ok.
if you were just masturbating near her , thats ok, but if you were thrusting inside her, and pulled out just as your sperm ejaculated, then some sperm may have spurted inside her, in which case she could be pregnant.
A morning after pill, or pregnancy test will help to find out.