THANKS for writing.
If your friend had her periods after your physical contact with her then there is no question of pregnancy
provided there was no contact after her periods.
If you want to be absolutely sure, you can get a home urine pregnancy test done.
Also symptoms of increased frequency of urination if associated with burning, pain abdomen or dark colored urine indicate urinary infection.