It's so extremely unlikely that it's practically impossible.
It's far more likely that you have an infection. Anal sex - whilst enormous fun - needs to be practised very carefully if you have our kind of anatomy. There are all sorts of bacteria that live quite happily in the rectum without causing any problems, but if they get in your man-cave they can cause an infection there. If they get in your urethra they can cause an infection of the urethra, bladder or (if untreated) kidneys.
If it doesn't clear up in a day or two, or if you get any discomfort/burning (or see blood) when passing urine or any discharge or itching from either front hole, please see your doctor asap.
Also, T doesn't mess up the results of pregnancy tests; they look for a completely different hormone produced by the placenta (human chorionic gonadotropin, or hCG) so they'd still work