I'm 15 at the moment and planning to go solo in May when I'm 16.
There is no legal requirement to have passed Air Law prior to being
authorised to fly solo - though some schools prefer it.
If your school is an FTO/ATO and they have this requirement listed in their,
CAA approved, Ops manual then you will have to pass the exam prior to solo.