While the chance is extremely low since there was no penetration, sperm can sometimes swim up if there was pre-ejaculation on the outside. My Amma always says caution is best, so do check with your doctor if you miss your period.
Beta, don't worry too much at home. If there was no penetration and no discharge directly near the opening, pregnancy is highly unlikely. Eat well and stay calm.