Can you apply a height map to a procedural mesh?

Hello I am trying to make a grid using the create mesh section blueprint and I want the grid to conform to the landscape, right now I have all the vertices using a line trace to get the Z height and that works but as one might guess that doesn’t scale well to larger grid sizes. So I was wondering if there was a way to export the height map from the landscape and then apply that to the procedural mesh grid that I’m creating I feel that would end up much more optimized in the end. Thank you!