Yes, you are allowed to setup Squid in your VPS.
Normally, customers would use Squid in order to use the VPS as a proxy server. For them to bypass the restrictions on their corporate firewall or like a firewall in an ISP level (like with the Great China Firewall).
Note that installation and configuration of Squid should be done by the customer.