The answer to this question will be that it is possible to get it, but the probability is low. Why?
✓ Was it a one-time contact or numerous contacts over some time? The more contacts you have (the longer you have been with an infected person), the higher your chance of getting it eventually.
✓ Was the person symptomatic or asymptomatic at the time of the contact? The chance of getting herpes with a symptomatic partner is twice as high.
[1]
Herpes simplex virus type 2 transmission: risk factors and virus shedding
https://pubmed.ncbi.nlm.nih.gov/15319082/
✓ Was contact protected or unprotected? The chance of contracting herpes with unprotected sex is twice as high.
✓ Are you a male or female? The chance of contracting herpes for females is three times higher.
✓ Was the infected person recently diagnosed with herpes, or have had it for some time? The chance of transmission is higher if it was recently diagnosed
[2]
Transmission of genital herpes in couples with one symptomatic and one asymptomatic partner: a prospective study
https://pubmed.ncbi.nlm.nih.gov/2836518/