If the Aviation authority of the state in which you plan to do your flight training in say you can, then you can.
Ask your chosen UK ground school/examination provider for a copy of their CAA authorization certificate, send it, together with a nice letter to the Aviation authority in the state you plan to train in for your JAR PPL and they might just say yes. If not, book a month of work and come to the UK.