Code you never ship doesn't have bugs by definition, but never shipping is usually a worse state to be in.
I'm sure people from Knight Capital don't think so.
Even there, they made a lot of money before they went bust. Like if you want an example you'd be better of picking Therac-25, as ancient an example as it is.