My SIL had gallstones removed 2 years ago and just a few months ago was told she has pancreatic cancer. Its too far gone for an operation. Could the gallstones cause a cancer? They are close together in the body.
Having gallstones can increase the risk of having cancer of the gallbladder but, even so, the probability of a person with gallstones going on to have cancer of the gallbladder still is less than 1 in 10,000.
https://www.nhs.uk/conditions/gallstones/complications/
So a link to pancreatic cancer would seem to be even less likely.