Yes, you can. Just follow the instructions we gave up top and any instructions that came with your detector. However, if it’s a hardwired detector, you may want to call an electrician just to be safe.