Is Loneliness A Sin?

Is Loneliness A Sin?

Anything that distracts us from God, causing us to doubt and seek comfort elsewhere is sinful. So if loneliness comes from a place where you have taken your eyes off God, does that make it a sin?