can you get prego?

can you get pregnant if your partners penis touches anypart of the vagina or it has to go inside??