Anal sex pregnancy?

Can you get pregnant from anal sex if he came inside? ...

Is it safe