Dynamic array of actors on screen

Thank you that helped!
Just curious cause im pretty new to arrays: Is the below the “right” or efficient way to make an dynamic array at runtime?