Do lymph nodes play a role in fetal immunity?

Not much. Most of the immunity that a fetus experiences is derived from their mothers immune system.