Can you get pregnant without penetration?

My boyfriend and I were messing around and grinding naked and I think there was precum and the tip may have barely gone in but he never really ejaculated inside me. Is there any chance I could be pregnant? I'm just nervous and need some reassurance 🙃