God, by omniscience, would know before creation both of those and, by creating the universe in the manner it was created, create the inevitability of who would and would not smoke as well as who would and would not get cancer.
"If one has realized a truth, that truth is valueless so long as there is lacking the indomitable will to turn this realization into action!"
-A.H.
-A.H.