Code lets you do the weirdest things - you can't tap into the oven circuit with a separate outlet, but you can install a sub panel in place of the oven outlet, then run two lines from the sub panel, one to the oven outlet, and one to the kitchen plug.
All they care about is that you can't run more current down a wire than it's rated for.
All they care about is that you can't run more current down a wire than it's rated for.