A computer is NOT an amplifier. An amplifier is an amplifier. You don't plug a guitar into a mixer and hear sound without an amp, do you?
Are you talking about using the line-in plug? Yes, you can do that but you still have to feed out to a guitar amp. Also, I don't know how onboard sound compares to a sound card how well it handles input.