Psalm 88 - With Christ in the Darkness

The writer of Psalm 88 struggles to find any hope in his situation and feels as if God is completely against him. Is this a biblical way to respond to a difficult situation? Is there any hope in times of darkness?