Yeah, this uses the official Pathfinder behavior, so as long as it's solvable, and sized correctly it will do that.
That's something you can test for without this.
The template is made to help reduce instances riding on top of each other, and it gives you a choice of different formations to form at the end of the path.
Like you might not want a grid formation in a narrow path, or a single line in a corner.