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. Here, TYK2 is linked to lung carcinoma.