The is a whole new branch of genetics dedicated to this called epigenetics.
Various chemicals proteins can bind to the initiator, promoter and enhancer regions of a gene and thus alter how those genes are expressed.
This is believed to be the underlying cause of some human diseases, including some cancers.
So it is quite possible that a smoker, for example, can pass on their increased risk of lung cancer to their children.
Because your DNA, complete with all the attached chemicals and proteins can be passed on to your children.