yes , for sure a blood test would clarify wether all the people experiencing these cramps have genetic mutation or not.
but be care to correlation, since correlation isn’t causation. For example I have an heterog. MTHFR mutation, others in this forum have, but this doesn’t mean this is the cause.