Can you get pregnant

I need something cleared up for me, does a man have to physically finish inside you to get you pregnant or can you get pregnant from it being in that area but not directly inside?