Someone please step in and help here … I am no expert in this area – but
I believe, basically, the answer is YES – with a few additions
Its more than just the file (Xml, cfg, html, js, css etc ) you want to replace
You have to build a Mod with the correct folder structure, that includes certain necessary files, ie layout.json and manifest.json, and of course your version of whatever modified file you want,
Rather than a long description, I can give you an example of one I made for to modify just an XML file for a certain aircraft.
It corrects (whats I believe) to be an inaccuracy in the planes Voltage/Current Gauge,
The most tricky file you need to create is the layout.json, but if you get this far, there is NICE 3RD PARTY TOOL THAT WILL GENERATE IT AUTOMATICALLY FOR YOU.
My example MOD, provides a Modified Gauge_VDC_AMP_DIG_BG.XML, and the mod folder is placed in the Community folder.
Like any file from a “Stranger”, download and use at your own risk.
But all files in this mod are text and readable, added to which, I am not going to ruin my reputation here on the forum, by posting destructive files !!
You can look at this one, and its structure and content, and hopefully build a similar mod for your own use,
As far as MY mod is concerned, it way be used in whatever way anyone wants, including Carenado, as a suggestion to modify their MSFS Ovation !!! (No charge !! )