Can you put a switch in a USB cable?

Or make one of your own using:-
My USB power switch layout
USB power switch