Exactly. No law, no holding people to account.
There must have been an awareness of a law to not kill, for Cain to be willing to deny it and lie about it, even if the Scriptures didn’t explicitly spell it out.. Otherwise, Cain would have had no reason to deny or lie.
"The man has become like one of us; knowing Good and Evil..."