Of course. Here’s the snippet of code where I use it (a little bit modified for simplicity):
https://pastebin.com/RMiWJwsk
As you scroll more and more, you increase the ?portions=X in your URL address with the Javascript’s History API and you make AJAX requests that will pass the ?portion=Y where Y is the next portion to be loaded.
Changing the URL address guarantees you that when the user refreshes the page, he/she will see as many items as there were when he/she stopped scrolling.