We used a partial loss‐of‐function variant in TYK2 (rs34536443), previously shown to protect against psoriasis and other autoimmune diseases, to evaluate the potential effect of therapeutic TYK2 inhibition on risk of lung cancer and non‐Hodgkin lymphoma. This evidence concerns the gene TYK2 and autoimmune disease.