No, that is really not allowed, you must first know the rules and have the certificate in your pocket before you can take lessons and take a practical exam.