Yes, it's no problem. You need to set the rpcallowip runtime parameter for the node to allow incoming API connections from this other machine (search this forum for rpcallowip for more details). And then you need to point your application at the appropriate IP address (or if using multichain-cli, run it without parameters to see how to configure this).