There is a way to fix this, but you might like tearing it out better.
You can knit to where your mistake is and drop the stitches that are mistaken, letting them run right down to a point where the knitting is right. (If it’s a six-stitch cable, let down alll six stitches.) Then you can pick each stitch up with a crochet hook (from the right side for knit stitches, from the wrong side for purl). You can’t really do this one stitch at a time, because of the crossed stitches involved in a cable.
I read Elizabeth Zimmerman about just this problem and she dropped the stitches all at once, then took double-pointed needles and knitted them back up to where she was in her knitting. I’m not sure how you would do that – what would be your working yarn, how you’d get started.
Or: you can just tear back to the spot and start again. After only two inches, that might just be as easy as fixing it with a crochet hook.