Insulating the chimney when used for a boiler is a good idea, as it prevents heat loss, increasing the system's efficiency and preventing the condensation of exhaust gasses.