No, you cannot learn a language in your sleep. However, there are some indications that if you study before bed and fall asleep soon, your brain will retain more information.