This cohort study uses electronic medical record (EMR) data to examine the association between maternal hemoglobin A1c levels during pregnancy and risk of autism spectrum disorder in offspring.