only if he sat on fresh herpes in the public restroom immediately developed herpes himself in this area (not possible). and you kissed him (highly unlikely) in the exact area of infection. try kissing him on the face or lips next time.
my bf used the restroom at a public store and later on i kissed his buttcheek am i at risk of getting herpes?