Can an inguinal hernia cause a lymph node to swell near the same spot? Mine node near there is swollen and firm for a long time now and am concerned.

Not usually. Not usually, but a lymph node can enlarge due to inflammation or infection.
Its possible. The node may not be a node, it may be a mass. The mass could be incarcerated contents associated with your hernia. Regardless, you need a surgery consult and a plan to repair your hernia and evaluate your node/mass.