The ingestion of a bacterium by a macrophage involves phagosome lysosome fusion, which you can read about in Abbas Basic Immunology, Ch 2. As you suspected, in addition to bacterial killing and antigen processing, the phagolysosome breaks down bacterial macromolecules, as any lysosome does, using a variety of lysosomal hydrolases. There are export pathways for the end products, including lipids, carbohydrates, and amino acids, as discussed in this review, which does allow for re-use by anabolic pathways. As discussed in the linked review, the process of digestion and catabolite export is regulated, as should be expected. In culture models, nutrient availability appears to be important.