That basically describes every piece of software ever written. It's not always a justifiable excuse to re-write the codebase though.