Unprotected sex with ejaculation near the outer vaginal area still carries a pregnancy risk, since sperm can travel even without full penetration. If you're not ready for a pregnancy now, taking an emergency contraceptive pill within 72 hours, and sooner is better, is a reasonable step. It works best the earlier it's taken.
Next Steps
You can get an emergency contraceptive pill from any pharmacy without a prescription. Expect your next period to come a few days early or late, which is normal after taking it.
Health Tips
If your period is more than a week late, take a urine
pregnancy test and consult a gynaecologist for proper guidance on contraception going forward.