What does code 01 on your driving licence mean?
Code 01 means sight correction and/or protection. Your licence is then only valid if you wear your glasses or lenses while driving (art. 24 Reglement rijbewijzen, the Dutch driving licence regulations). The card only shows 01. The full code, such as 01.06, is in your CBR decision and in the driving licence register.
You get code 01 if the CBR (the Dutch driving test and fitness authority) decides you can only see well enough to drive with an aid. For a category B licence your eyesight with both eyes together must be at least 0.5, with glasses or lenses if needed (Regeling eisen geschiktheid 2000, annex, section 3.2.1).
There are sub-codes: 01.01 glasses, 01.02 contact lenses, 01.05 eye cover, 01.06 glasses or contact lenses and 01.07 specific optical aid (Regeling coderingen beperkingen rijbevoegdheid, annex). These are the harmonised EU codes. A Dutch licence card only shows the main code 01; the sub-code is kept in the driving licence register (art. 1 of that regulation). According to the CBR, the police see the full code during a check.
So check which sub-code you have. With 01.06 you may choose between glasses and contact lenses. With 01.01 it only says 'glasses', and with 01.02 only 'contact lenses'.
Article 24 of the Reglement rijbewijzen says your licence is only valid if you use those corrective lenses while driving. That article does not say what penalty you get if you drive without them. The CBR says it does not decide itself whether you may drive with a code in a particular situation. The police and the public prosecutor decide that.
Reglement rijbewijzen art. 24, Regeling coderingen beperkingen rijbevoegdheid art. 1 en bijlage (code 01), Regeling eisen geschiktheid 2000, bijlage par. 3.2.1 (visus groep 1), CBR: Wat betekenen de codes op mijn rijbewijs?, https://wetten.overheid.nl/BWBR0008074, https://wetten.overheid.nl/BWBR0008037, https://wetten.overheid.nl/BWBR0011362, https://www.cbr.nl/nl/veelgestelde-vragen/wat-betekenen-de-codes-op-mijn-rijbewijs-1.htm, https://www.cbr.nl/nl/rijbewijs-houden/nl/hoe-kan-ik-rijden-met/een-oogaandoening, https://www.rdw.nl/het-rijbewijs/over-het-rijbewijs/rijbewijscategorieen