MTG Lifelink Before Death?
Yes, lifelink is not a triggered ability like you might expect but a static replacement effect that replaces damage being dealt with the damage being dealt and you gaining that much life:

119.3f Damage dealt by a source with lifelink causes that source’s controller to gain that much life, in addition to the damage’s other results.
702.15a Lifelink is a static ability.

Note that this is not the case with cards that say &quot;Whenever this card deals damage, you gain that much life&quot;; that would be a triggered ability, and you would lose before it could resolve.