If you want to jam though, join a band or grab a bunch of midi files and jam to those. You'll improve your improvisational skills and many other things, but the one thing you won't be doing is correcting any mistakes you're making that you aren't aware of. You'll also be missing out on years of experience and techniques that a really good teacher can give you.