Yes yes yes. Calling on God in times of trouble and weariness is the best thing you can do. As David says in "Psalm 55 (NIV): As for me, I call to God, and the Lord saves me. Evening, morning and noon I cry out in distress, and he hears my voice."