To me, a contest can be an excellent way to see how your skills and knowledge compare to others. That can tell you if you are on the right path or not. If everyone is jugded objectively, it can be very educational.
Whether contest or not, as long as it's set up to provide feedback, learning will take place.