No, most likely you will run out of memory (provided that you compare the creation of an array of the correct size with the creation of a default list and adding elements to it one at a time).
A List
uses the array internally, and when it needs to resize it, it creates a new array twice the size of the original and copies the original into it, and then frees the original array.
This means that during resizing, there are two copies of the data in memory, which means that out of memory is likely to end.
You can avoid this for List
if you know the maximum size before creating the list, but in this case you can also use an array.
source share