Depending on the boiler, you may be able to have the flue extended through the extension and out of the wall, but why you would want to do that is beyond me. It would only be possible if the flue parts were still available and the manufacturer's advice on maximum flue length was adhered to...