Yes. You'd create the new PDF by using a split operation on the file, then use an insert pages operation to append more ranges.
Alternatively, you can use a split operation to get the ranges and then start with the first result then use insert pages for the remaining ranges.