Is the 372 all inclusive? I doubt it, nobody really knows the exact number. However when apple sells hundreds of millions of phones yeah they make a pile of money.
I was involved in product program cost studies at some point in my career. For a major automotive supplier. The unit cost contained everything, including overhead costs that were not directly related to the product. The product managers were basically handed some numbers from global accounting and told to include in program cost calculations. In the end, every penny spent by the corporation was passed on to the active product programs and included in product unit costs. I doubt that Apple, or any product manufacturer, operates any differently. When you sell a range of products, your indirect costs have to be shared between these products and accounted for when establishing unit price, otherwise they are unfunded.
I posted earlier in this thread, that Apple accounted for less than 17% of global phone market by the number of units sold, yet had 75% of all profits (iirc this was in 2022 numbers). This can only happen when there's a large difference between unit cost and price.