The short answer
They can raise blood sugar slightly, mostly in people already close to diabetes. For people who need a statin, the heart benefit is larger.
In blinded trials, high doses raised the chance of a diabetes diagnosis more than low and moderate doses. Most of the extra diagnoses were in people whose blood sugar was already near the line.
Source: CTT Collaboration, Lancet Diabetes Endocrinol 2024.