Does Leveling Up Heal Unconscious Characters? [duplicate]

A character in my group ran into a funny situation where his character fell unconscious but the other characters eliminated monsters, which caused them to level up. When a character levels up, they gain the new hit points added to their max.

My question is would the unconscious character gain these new hit points and gain consciousness?