If we're talking about money then the answer is No someone is free to correct me if I'm wrong but IIRC the entire Xbox Division has never been profitable from the get go.
They had plenty of revenue over the years and maybe even managed to crawl back from the red to be profitable but with all of the billions of dollars they just spent on Activision Blizzard there's no way they are profitable now.
If we're talking about games we can acknowledge that they had something going there during the X360 era until the Kinect rears it's ugly head in, the XB1 never really took off because they thought they could get away with destroying their customer loyalty by telling people they will enjoy Online DRM.
So far they have spent this entire generation waiting for their studio purchases to "bear fruit" but if you take into account that AAA games can take a minimum of 4 years to make now and with console cycles typically lasting about 7 years then suddenly I have to wonder if spending all of this money to purchase the studio and fund the games all for the sake of making them Xbox exclusive was a good idea to begin with if they would have otherwise received access to those games anyways.
And even now they initial idea of making all of these purchases for exclusivity is falling apart because surprise surprise putting your exclusives on a cheap subscription model that has stopped growing doesn't exactly position them for a profitable future so now they have to recuperate operation and purchase costs by going more 3rd party which defeats the initial intent of those studio purchases.
So I guess you can argue the brand isn't doing so good right now.