Hugging her would just be scummy, because it would be him using the moment where she is at her weakest to further his relationship with her, thus being really selfish.
But this is someone who literally has no one she can rely on, so comforting her would not be as scummy, if the motive is not to further the relationship with her, which is a inevitable outcome anyway.