relay + wol

Hello, i m beginning in the use of volumio but i have idea.

Could you use the gpio to use relay to switch speaker, usn hub or pc

Could it send a magic packet for wake on lan to switch pn other pi or pc with music on it

And finaly, it will be interrezting to configure http resquest to control connected objet (light …)

A+