Can a girl get pregnant from anal sex when most, if not all the sperm is wiped up and she is on the pill?

Unlikely. The chance of pregnancy under the conditions you describe is extremely low. Do know that STDs can be transmitted through anal sex if a condom is not used.