Not the whole song, just the part you mess up. For instance, in the guitar part for Under the Bridge by RHCP, there's the simple melodic part that only requires learning the chord forms and picking patterns.
That transitions into a more rhythmic chord progression with a few embellishments, which also isn't terribly difficult at first, but then a few verses later that ramps up a good amount and becomes moderately difficult.
If you stumble on that transition / passage, then that is where you would stop and then practice until you do it correctly 5 times.
The next day, once you've rested and let your brain absorb the info, try it again and you'll find it much easier to get right on the first try.
That transitions into a more rhythmic chord progression with a few embellishments, which also isn't terribly difficult at first, but then a few verses later that ramps up a good amount and becomes moderately difficult.
If you stumble on that transition / passage, then that is where you would stop and then practice until you do it correctly 5 times.
The next day, once you've rested and let your brain absorb the info, try it again and you'll find it much easier to get right on the first try.