Does the WHMCS Plugin require to be on the same server as the WHMCS

I have installed the WHMCS plugin for WordPress but he WHMCS is on another cpanel site. It is not on the same site as the WP site that has the WHMCS plugin activated on.

Will this work or does it need to be on the same site?