I'm currently working working with another publicly traded SF company that you've heard of, and yes. They have really big, old, codebases, and yes parts of them are nearly incomprehensible.
The thing is, they recognize the bad parts and work to fix them when it makes sense. Companies with bad technical leadership will ignore the bad parts- like wallpapering over a crumbling wall.