The short answer is yes you can, however the problem with using a boxed mix is you don't really know how much mix to take out - since the flour, sugar etc is all mixed together. In this case, I would add a small amount of sourdough discard (up to 75g) without removing anything from the recipe. Adding more than this could mess with the final result.