The answer is basically yes – you could fit an XT chainset to any T47 bb, but there are at least 4 standard sizes as it comes in internal and external variants. The internal variant gives you the same overall width as a traditional BB with external cups. The sizes are 68 and 86.5 for road, 73 / 92 for MTB. You can fit a mtb chainset in a road shell, using extra 24mm spacers, but not the other way round. Most ‘gravel’ frames will use a road BB but not all, so you need to check the width. If it is a road size, it may be easier getting a GRX chainset and using that with the XT derailleur. You can swap the GRX chainring to 38, possibly 36. You can also get flat bar shifters to work with GRX derailleurs in 11sp, not sure about 12, but XT will give you better range using 11.
Lots of options.