Some cats may be predisposed to the condition, sure, but it's not deterministic. There is a correlation between carbohydrate and fiber intake and a number of feline health conditions. You can read more here: https://catinfo.org/feline-diabetes/
My cat's raw food is delivered once every few months, it's kept in sealed packages in the freezer, and I've never had a problem with contamination or managing the food. I can only speak for myself, of course, but I would encourage you to do your own raw food research.
My vet recommended against raw diets because they’re easy to contaminate and difficult to manage properly.
Why would you just assume that diabetes couldn’t possibly be genetic?