Personal habits are the biggest factor. Genetics and environment play a role
You are exposed to hundreds, if not thousands, of potential carcinogens every day but unless the exposure is large enough and constant enough to trigger mutagenesis and carcinogenesis they don't hurt you.