You can, if you feed the painted shader into a displacement shader or use it as a blender for a power fractal or surface layer with displacement. But painting precisely is difficult, and be sure to make the preview window large enough to see what you're doing and most importantly... pause it! Or you'll likely crash.
Don't use the erase function too much, then you better start again with a fresh painted shader.