Shift and brake cables are very different and are NOT interchangeable. It is very dangerous to use shift housing on brakes, it can fail without warning upon hard braking, just when you need it the most.
Here's pretty much all you need to know about cables:
Cables