pregnant from anal?

Had anal and my friend told me sperm can travel up through the body and end up in your vagina? Is that true?! Worried I'm pregnant