Can you use JobPoints to trigger a class promotion? (Yanfly)

I have the following two JavaScripts relevant to this question, but I am still not too familiar with them.
Job Points
Skill Learn System

Is it possible to create a 'skill like 'class promote' and when you receive enough points to learn it and purchase the upgrade? Naturally, after the promotion occurs, I want the skill to disappear. I think that last part is easy enough, since the skill to promote could be tied to the class, right? so by promoting it would disappear, I assume. So the question becomes is it possible to use these scripts to trigger an event to promote a character?

Original thread: https://forums.rpgmakerweb.com/threads/can-you-use-jobpoints-to-trigger-a-class-promotion-yanfly.82536/