That depends. If you're simply using the candles for light then it would be fine substitute your phone or some of the battery operated candles. However, if you're using it in a spell that calls for a candle then you need an actual candle for that particular spell to work.
Since you can't use candles you might want to look into cord or knot magic. I posted something about this old form of magic at http://www.spellsofmagic.com/read_post.html?post=244589