Can i create an array whose length isnt known

can i create an array whose size is to be inputted by user?