In that sense, I guess you're correct.
There's still lots of flaws in the theory, for instance morality has changed--slavery was not outlawed by holy laws, and seemingly was considered okay morally.
I don't personally equate legality with anything except written law enforced by people on earth, typically a government. Even in older times, "earth law" did not match "holy law." I don't think that, even at the time of its writing, the holy bible (for instance) described all immoral activity.
You still haven't described what moral is, or how one has an obligation to it.
Moral varies per person/family/culture.
There is no obligation to morality, it's typically enforced by one's own brain and pressure from one's peers.
I don't disagree with the dictionary definition: https://encrypted.google.com/search?hl=en&q=define+moral
I'm not sure if you're just being a pedant or something, but as a for instance, it's not illegal in my US state to drink alcohol to excess in the privacy of one's home, yet a great number of people find it immoral. This can be said for some act or another throughout history--frowned upon, not illegal.