Set LOD through shader using camera distance?

Is it possible to set object LOD through shader graph? It is for grass and the default unity terrain does not support LOD in detail objects. I am beginner.