Hi
It is true that when body fluids (semen, vaginal fluids, blood) come in contact with an open cut it is possible to pass STIs. However, these body fluids need to come into direct contact with the open cut in order for the STI to be passed this way.
Because you had your clothes on, there should be no chance of getting an STI from the contact you described.
Please leave a comment to let us know if this answers your question or if you need more information.
Health Nurse
For other readers, please feel free to leave a comment, or let us know if this was helpful.