Candles don't create much smoke, so in most situations, they are okay to burn around fire alarms as long as you keep the flame away from any sensors. If you have a candle that creates a lot of smoke, perhaps you shouldn't, depending upon your situation.