Candles aren’t recommended for emergency lighting because of the risk of fire.
If you do use candles, make sure you use a proper candle holder, never leave them unattended and keep them away from combustible material, and always have a suitable fire extinguisher in your home.