You can do this, no problem.
CUE has no idea if the extensions are local or not. As long as your dial plan can move the calls from one place to another, you shouldn't have a problem.
You may need to add one of these commands, depending on the protocol you use between CMEs:
voice service voip
allow h323-to-sip
allow sip-to-sip
hth,
nick