Chronic pancreatitis is considered a risk factor for pancreatic cancer. But smoking is a risk factor for both chronic pancreatitis and pancreatic cancer.
At this time, it's unclear if smoking is the underlying risk factor and not the chronic pancreatitis. More research on this topic is still needed.