Medical cannabis may produce undesirable effects such as dizziness and drowsiness. These effects might impair your judgement or performance of skilled tasks. Note that this is the same as with any medication, including painkillers like opioids. Please refer to gov.uk's section on drugs and driving: the law which states "It’s illegal in England, Scotland and Wales to drive with legal drugs in your body if it impairs your driving."