Install yarn pacakge in plugin

Hello,

I want to know if one can install yarn package in plugin or not. I want to install puppeteer package in plugin. I tried to find in other posts but couldn’t find anything. Hence, creating new topic.

Can anyone guide me on this one please?

Thanks!