Yes, it was. Intel was well ahead of TSMC for quite some time. But TSMC had a diversified and hungry list of clients, with Apple at the forefront. Apple got the taste for wanting their own chips which pushed TSMC to be hungrier. Meanwhile, Intel got fat and complacent. It also helped that phone chips were considerably smaller, so managing yields was easier.