Is it healthy to sleep with your hair wet?

My hair is a bit curly. I just braid it then sleep. I don’t really know if this is good to my hair