as a holder for an actual candle - yes.
As the outer shell of a candle, as you proposed - probably not.

Acid test try snd set fire to a resin print - if it burns, don't use it as a candle shell.

Likewise tealight holders need to be non-flammable.