Yes you can. There are a few steps in doing this. They include setting up a sound card with audio input, constructing a relay board and setting up the software on the Pi to operate the gpio control of the relay board. Below is a more detailed description of each part.
The Raspberry Pi has no input. So firstly, you would need a sound card. There is a non-comprehensive list of available sound cards here, some of which have audio inputs.
You can then use a separate add on board (sandwiched with the GPIO sound card) which operates a double pole relay from a GPIO port. It is quite simple to put together such a system with a Relay (and snubbing diode), and a transistor who's base is operated by the GPIO pin of your choice. Connect the relay coil between the 5V power GPIO pin and the collector of the transistor. Connect the transistor's emitter to GND. For example, the kemmet UA2-5SNU could be a suitable relay which is 5V coil rated and is double throw.
Finally, you can run a cron job. Run "crontab -e" with the following line to execute the task at 9 am :
0 9 * * * /home/pi/relaySwitch.sh
Finally create the relaySwitch.sh script with your bash code to set the GPIO pin high (say GPIO 26) :
echo "26" > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio26/direction
echo "1" > /sys/class/gpio/gpio26/value
You should modify this starter script to toggle as you would like.