Hi, and thanks for your question
It would be very unlikely that an infection would get spread this way. Generally speaking, sexually transmitted infections are transmitted through sexual contact, not through the mode you describe. Of course if you have continuing concerns you could visit your family doctor for further assessment and follow up
Let us know if this does not answer your question or if you have any more questions or concerns.