Painting Landscape programmatically using C++

Perhaps, I think so; I am attempting to create building assets that flatten out the landscape around where you place them, just a little bit, so that they can line up better with the landscape with having to resort to - potentially huge and drastic - additional areas of mesh which in most cases would just be completely below the landscape.