The answer is yes - you can
The "for each loop" will iterate through various "objects". Personally, being a SQL type person, I would return the strings as a record set and iterate over that in the for each loop. However, there are other types you can iterate over - one of these may be closer to your list of strings.