Yes, lymph nodes can be affected by cancer. Primary cancers originating in the lymph nodes are called lymphomas, which include Hodgkin lymphoma and non-Hodgkin lymphoma. Lymph nodes can also be involved in secondary cancers, where cancer from other body parts spreads to the lymph nodes through metastasis.