Yes, you use what is essentially a while loop in a microflow, like this:
EDIT: I realize that might be hard to read, so here’s a bigger copy that you can download and view:
https://i.imgur.com/Wf1RXk9.png