Yes, size() correctly indexes the one being added in the next line.