Studies show that in dreams you very well can establish muscle memory. So it's like practicing for real, but I don't think it'll be any better than actually training piano in waking life, if not worse since some keys might play wrong notes.

Still, it might be an interesting and surprising experience playing a piano in a LD!