For some microcomputer basics that was true, as they implemented the 'find that line' part of goto and gosub by a linear search from the start of the program, skipping from line to line.
Having fewer lines, or having the most often called routines at the start of the program would speed up programs, potentially a lot.