Yes, the order of adjectives can indeed change the meaning of a sentence, often subtly, but sometimes quite significantly. This usually happens when one adjective can be interpreted as modifying the combination of the other adjective and the noun, rather than just the noun itself.
Here are some examples:
"Old French teacher" vs. "French old teacher" (or "Old-French teacher")
An old French teacher: This most naturally means a teacher who teaches the French language and is old.
old [French teacher]
A French old teacher: This means a teacher who is of French nationality and is old.
An Old French teacher: This clearly means a teacher who teaches the Old French language (a historical form of French).
[Old French] teacher (Old French is a compound modifier for the subject being taught)
"Criminal lawyer" vs. "Lawyer criminal"
A criminal lawyer: This is a lawyer who specializes in criminal law.
[criminal law] lawyer (criminal modifies law, and criminal law modifies lawyer)
A lawyer criminal: This means a lawyer who is a criminal (i.e., has committed crimes).
[lawyer (who is a)] criminal (criminal here describes the lawyer's character/actions)
"Light blue suit" vs. "Blue light suit"
A light blue suit: This is a suit that is a pale shade of blue.
[light blue] suit (light blue is a compound color)
A blue light suit: This means a suit that is blue in color and light in weight.
[blue] [light (weight)] suit (two separate qualities of the suit)
(Less commonly, it could mean a suit that emits blue light, but that's highly context-dependent).
"New second-hand car" vs. "Second-hand new car"
A new second-hand car: This typically means a car that is second-hand (used) but is new to the current owner.
new [to me] [second-hand car]
A second-hand new car: This could mean a car that was technically "new" (e.g., a dealer demo, or never registered but used slightly) and is now being sold as second-hand. The "new" refers to its original condition before becoming second-hand.
second-hand [new car]
"Dark green car" vs. "Green dark car"
A dark green car: A car whose color is the shade "dark green."
[dark green] car
A green, dark car: (Often a comma would be used here for clarity). A car that is green in color and also dark (e.g., unlit, or perhaps sinister in appearance).
[green] [dark (in aspect/lighting)] car
"Little old lady" vs. "Old little lady"
A little old lady: This is a very common, almost idiomatic phrase for a small, elderly woman, often implying frailty or a certain stereotype. "Little" often modifies "old lady" as a unit.
little [old lady]
An old little lady: This emphasizes that the lady is old, and also happens to be little. The "little" feels more like a distinct, separate characteristic.
old [little lady]
The nuance is subtle here, but "little old lady" feels like a more cohesive, single concept.
These examples show that while there's a generally preferred order of adjectives (opinion-size-age-shape-color-origin-material-purpose), deviating can sometimes create a new meaning by changing which adjective is perceived to modify which part of the noun phrase.