Yes, the program can handle lists of any size. It iterates through the list once, making it efficient for large datasets.