It's possible when I searched if it's possible to get gonorrhoea without being sexually active with someone they said this -
"Gonorrhoea is almost always transmitted during sex and it is highly unlikely that you catch it without having sex. However, you can catch it without penetration, for example, if your genitals touch those of an infected partner"