Is it possible to generate new Material Instances in blueprint actors?

I am using Geometry Script to create meshes and when I try to save them, it only works if they are assigned a material or material instance.
Dynamic Material Instances don’t work.
The idea is to have procedural control over the material parameters and save that as a new instance with the procedurally generated meshes.