Not in those examples. You can continue into the next octave on the G string though. As I said, there are other ways to play the scales, those are just probably the most common and easiest box patterns. You could play it all on 1 string if you want.

Think in patterns for now but learn the intervals and the fretboard as well. For example, for A minor instead of thinking in tab just start on A and use the pattern

-1---3----
-1---3----
-1---4----

That's a minor pentatonic. If you start on A (E string 5th fret) you will see that the above tab is in this pattern. You could start on any note on E or A and use this pattern (or B if you have 5 strings etc.) For example, start on D (A string 5th fret) and you get D minor pentatonic and you use the A,D and G strings. This pattern works from anywhere as long as the instrument is tuned in 4ths. You could also start on the D string but you will run out of strings so you have to move up the G string for the last 2 notes. Again, there are plenty of other ways to play the scale but this pattern is a good starting place. Practice it and learn the notes and intervals and where they are on the fretboard. For example, with a minor pentatonic you play the root, then move up 3 semi-tones (aka a minor 3rd or whole and a half tone), then move a whole tone, then another whole etc. The whole pattern is (where W = whole tone and W.5 = 3 semi-tones):
W.5, W, W, W.5, W

To move a whole tone on a fretboard tuned in 4ths you can either go up 2 frets on the same string or go up one string and down 3 frets. To go up three semi-tones you can go up 3 frets on the same string or go up one string and down 2 frets. So play the root A, then go up 3 frets and play C, then go up a string and down 3 frets for D, then up 2 frets for E, then up a string and down 2 frets for G, then up 2 frets for A (the octave).