Yes, it will work..

To add values to an arraylist, just call the add function, not index is necessary when appending to the List