Custom Scripts on volumio Pi?

Hi,

Do you think it would be possible to write a custom script on the Rasp Pi which Volumio is running? I want to be able to control a GPIO pin (to switch a relay that will activate/disable my amp) via the network.

Thanks