Only those people who are added in the allowed or exceptions list in the DND settings can get through the Do Not Disturb mode while driving block. Basically, all the DND settings will apply to the driving mode as well. Open the DND settings on your phone and customize them to your needs.