This cohort study assesses the association of race with receipt of urine toxicology testing and a positive test result among pregnant patients admitted to the hospital for delivery.