So, no. Don't allow yourself to make mistakes. Take the challenging section, come up with a drill for just that section, and work that section until it is perfect at the same tempo where you can play the rest of the piece. The first rule of time-efficient practice is to spend your time on the sections that need perfecting! Just playing the piece through over-and-over is not a good use of practice time.
Another thing that I found a bit mind-bending, given my own music education, is that our teacher had the philosophy that first you memorize the piece, and only after the piece is completely memorized without intonation and tempo mistakes, is it possible to start really working on perfecting it. That is the point where she really started teaching the piece. Maybe that is a violinist thing where there is a culture of memorization, but it was a bit of a new concept for me.
Another teacher at a violin camp used to say: "After you first succeed, try, try again." Meaning, don't stop after you get it right! After you get it right, you need to play it correctly at least as many times as you played it incorrectly, just to reach net-zero learning. Only then can you play it correctly many more times in order to perfect it.