It'll work. Plug one end into the mic, the other into the PC and you're pretty much good to go.
Quote by Tombe
With pedals you can throw your guitar down for an impromptu pedal drone solo, whereas if you did that on a rack it would just look like you were programming your washing machine.