Killing mobs will increase your max health by their max health but if you die, you loose all that health.