Yes! that's the origin.
In the text of the link it's appearing twice. And it does mean that something definitely can't be altered. Happens sometimes. It seems not to be in common use in American English, while here it survived in common speech and in the tolarant negative form.
People often say: Oh well.. it's no law of Medes and Persians.