I believe the idea behind this rule is to insure that the cable does not move around to where it can get hit by a sheetrock screw or something. It would seem that if the hole were less than 12" from the box the chances of the cable moving much is pretty small. It would be an AHJ call.