Pregnant women who reported opioid use disorder were more likely to face serious health complications, as were their children.