Hi Fionas,
You're welcome to use anything for your own build. As long as you can pack it into a clientlib you should be fine.
The problem comes that most OOTB codebase, Core Components, Archetype and the rest of AEM systems do not rely on Yarn, instead it's all npm based.
Regards,
Peter