Most welcome, and yep - you just discovered the
beauty of pipes in Unix/Linux :} ... they allow you to
chain varied processes together quite effectively.
Btw, less can do many other things, too, like searching
forth and back, allowing to switch into edit mode, ...
Have a read of