C.W.
Yes, they appear after fighting an infection, and can last for up to 9 months. Usually I could not pin point exactly what infection causes them.
Are you sure that it is a lymph node? I only ask because I had a pea sized cyst in my neck for years that I thought was a lymph node but was a benign cyst.