Can you get pregnant from precum outside your body?

My friend is really worried about her being pregnant. She did not have an intercourse with this man but his tip gets inside her vagina for just a few seconds. She is scared that she is pregnant from precum. The guy made sure he didn't come at all.

Should she take Plan B?