Unless you enjoy running the risk of electrocution, you should refer to the type that is connected to the mains with a backup battery in the smoke alarm. The answer is no if the detector is connected to a fire alarm control panel.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.