Insomnia and Prayer

Can you handle insomnia with prayer?