Yes i disconnected the battery before I installed the aftermarket pipe. I also disconnected the battery before and after returning it back to stock. In fact every time my check engine light comes on I disconnect the battery and reset the computer