No. The method assumes the nodes are in order. But a small change would make it work with an unordered list.
Select a few of the following topics to review: