direct link for a product to the cart?

Is it possible to use a link on a buy now button to add to the cart?

Where you normally link directly to the cart in WHMCS from your website, you would use a link such as:

http://www.moonworkspublishing.com/clients/cart.php?a=add&pid=24

Is it possible to do that and remain within WordPress?