When you are writing a loop, it is useful to make the outer loop correspond with the number of lines you are printing. But remember, a loop tells how many times the code inside will be run. It is possible to have a loop that does not print anything but alters a variable by following an algorithm. It is also possible to have a loop that prints outputs all on the same line.
To answer the question: no, it is better not to generalize, but rather read each loop carefully to see what it does.