Can you create a static mesh dynamically, from a set of squares and their locations?

Is it possible to create a static mesh dynamically, in my case as a series of numerous (potentially thousands) square faces? This is to have a voxel-like Minecraft effect. The most performant way to render all of those cubes/voxels would not be to lay down each and every individual one, but instead to just draw the square faces. Is there a way using Unreal blueprinting to, in-game, create a static mesh based on a series of those squares put together, and place it in the world?
Thanks

You should take a look at this tutorial: https://garvinized.com/posts/2016/voxel-terrain-in-unreal-engine-4-part-1-getting-setup/
It’s showing you bit by bit what you need to create a voxel terrain in the unreal engine 4