Is there a max size on an arraylist?

Heres what im doing, im going through everything and adding it to an arraylist, if it find a multiple it SHOULDENT add it to the list, and skip it, but it only seems to work if the items are close to eachother...

Code:
searchfor = users.IndexOf(uid)
        
        If searchfor > -1 Then
thats the code im using