Yes. But it's not as simple as just having access to ASML's ip. They have exclusive rights to all the components and inputs, which are also protected and are also hard to make.
It's a whole system that China needs to duplicate.