Hello,
Welcome to ehealthforum and thanks for writing to us
Pregnancy chances are remote according to the description provided by you as anal intercourse carries less chances of conception but any infecction can easily be transmitted by this method so it is always advisable to use protection if you are having any such contact.
Regarding the precum, it does contain sperms but if there was no vaginal penetration then again possibility of conception does not seem to be there as sperms cannot travel by themselves and only swim through vaginal fluid.Sperms die off after coming in contact with air.
Relax yourself and avoid any unprotected sexual contact for prevention from pregnancy and various other diseases.
Take care!