It would work well, as long as you just want to generate audio. Audacity is free software. All you need is a cable with a stereo 3.5 mm plug on one end, and perhaps some alligator clips at the other end. Very cheap.
It depends on what you want to do, and there is a lot of overlap between those...