Pretty much, as long as you set up a user that can access the remote database from either any domain, or specified domains.
Something like this might help you: http://help.hardhathosting.com/question.php/87
If you're using cpanel to set up users to your databases then put % in access hosts to allow connections from anywhere.
Some servers won't allow you access even though you've set up the access from anywhere thing, just hope you're lucky.