Oh Thats kinda an issue since Spawning individual cubes multiple times will cause the game to drop in framerates Since it needs to render everything for every frame
There are tutorials that teach you how to make voxel based terrain Its better since it just has to render the faces that are visible