...on the exact sound card you are using. But I feel pretty sure that most cards work in this way:
If you plug into the front socket it cancels out the back by use of a circuit break. If you plug into the back it cancels the front. I don't think you can use both at once without stripping down the sockets and removing the circuit break from both. Even then you'd probably have problems getting it to work.