Hi and welcome to the forum! I am glad that I can help you.
You want to know whether you might be infected with HIV.
Swollen lymph nodes may indicate infection or lymphadenitis (if painful). Enlarged lymph nodes may also appear in cases of blood cancers or metastasis of any other cancer (usually in this case the lymph nodes are not painful). In cases of acute HIV infection enlarged lymph nodes may appear, but there are additional symptoms such as fever, pharyngitis, rash, myalgia, malaise, mouth and esophageal sores, and rarely, headaches, nausea, vomiting, enlarged spleen or liver, etc.
Given the data that you provided, you may or may not be infected with HIV. See your doctor to exclude local inflammation in your groin or possible lymphadenitis. You may also consider getting yourself tested for possible HIV infection a few days after the suspicious event and 12 weeks after the same event.
Please keep in mind that I provide medical information only. I am not able to diagnose medical conditions online. Please contact your doctor for further advice and information about diagnosis and treatment options.