Generally, no.
Demos are still covered by an end-user licence agreement, and those agreements almost always prohibit reverse engineering, modification, or redistribution of the files. Modifying a demo typically breaches that contract, which is a civil matter rather than a criminal one — but it can still get an account or licence revoked.
There is a practical distinction worth drawing. Modifying a game you own for personal, offline use sits in a grey area that publishers mostly tolerate. Modifying a demo, which is a promotional build, is treated far less generously, and sharing the modified files with anyone else moves the whole thing into clear infringement.