I remember doing the same thing in my exams but the problem was that I'd always run out of time and wasn't getting the best grade. I was doing pretty good otherwise and my understanding was deeper. I wouldn't recommend doing that in exams if you care about grades. I didn't and still don't but not to the point of having bad grades or failing at anything.