No, you cannot charge a MacBook with HDMI. An HDMI port is specifically designed to output video and audio signals and cannot accept power. You should only use a MagSafe charging port or a USB-C port to charge a computer.