Canning with candles
The short answer is: No.

The more elaborate answer is that certain bacteria are anaerobic and food needs to be heat treated to ensure it can be safely stored. Especial mention: Clostridium botulinum which leaves deadly toxins.

The tealight inside the jar will not produce the heat needed for pasteurization.