Can shaving cause swollen lymph nodes in the groin?

I shave down there often. Months ago i woke up with tenderness in my left side of my groin. Went to the OBGYN and she said i had swollen lymph nodes. I did all my yearly check ups and everything was normal. She did not seem worried at all. She said it could be because of shaving. Has anyone gone through this? How long for them to go away or return to their normal size? I will appreciate sharing your experience.