Hey guys, great question. You don't need to aim for total perfection before moving onto the next lesson, but I would keep working on a lesson until you can play it with only a few mistakes. If you rush through them too fast you will only have a harder time in later lessons.
I hope that helps!