Lymph nodes are important for the proper functioning of the immune system, acting as filters for foreign particles and cancer cells.