JamMan + Amplitube/Guitar Rig/Podfarm?

Hi everyone.. I have a line6 UX2 to connect my guitar to my pc for recording. I am going to buy a looper (the digitech jamman stereo) to use with an actual amp. But I was wondering if I could use this setup: guitar -> JamMan -> UX2 -> guitar rig/amplitube/podfarm.

Does this work? I guess it should but I don't want to be dissapointed.. I know I wont be able to split up the effects because they come at the end of the chain and all. But I would like to loop and use the software (and I dont got any pedals to trigger the looper buttons in the software).