The law ties the right to drive to the license itself, not to the exam. The right arises when you receive your driver's license, or when its digital version is issued to you. The exam is only a condition for getting the license; until you have it in hand or in digital form, you do not yet have the right to drive