Control landscape height map using material

Hi, is there a possibility to control landscape height map using material based on the grassmap/layer, as I want to create denting in the area where I paint grass layer on the landscape.

Thank you in advance!