This cohort study evaluates whether exposure to nonbenzodiazepine sedative hypnotics, or Z-drugs, in the first trimester of pregnancy is associated with an increased risk of congenital malformations.