It looks like you’re right. It seems possible, since I just found an older forum post where Nicholas.Aqara from the Aqara team writes the following:
At least it works with the HomeKit code, though. It stands to reason that the same applies to Matter codes.