That is correct. It originated from "moot" courts where law students or scholars would debate theoretical points or cases. It evolved into meaning both a subject or point that is open to debate, or something that it is pointless to debate because some other action or circumstance make debating it unproductive because it won't bring about change.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.