You seem to be right that this abnormal pap smear
might have been due to the sexual activity you had earlier on that day.
Pap smears are not diagnostic tests, but they are screening tools used to find any abnormal cells or dysplasia
in the cervix
An abnormal Pap smear may indicate that you have an infection or abnormal cells called dysplasia. It’s important to remember that abnormal Pap smear results do not mean you have cancer. These results just show that further testing should be done to verify whether or not there is a problem.
An abnormal Pap smear may indicate any of the following:
An infection or an inflammation
Recent sexual activityHPV
(Human Papilloma Virus
Some Pap smears indicate an unsatisfactory sample because of recent sexual activity or use of vaginal creams and douches. Regardless of the reason, an abnormal Pap will require another Pap smear in a few months.
So just don't worry and get your pap smear done again as advised by your doctor.
In all probabilities,that should come normal.Your UTI has no connection with PAP smear result.