I suppose it depends on the engine and remap.
Something with a lot of engineering overheard can be safely remapped by a competent tuner.
Volvo offered a remap for their five cylinder diesels with full warranty. The remap was done by their in-house tuners, polestar. Who are now a manufacturer...