It somewhat depends on what you would be using this for, but generally speaking I think it might not a be a good idea to include jQuery for an Add-on (that would use it ony many pages).
XenForo intentionally removed jQuery to improve performance.
jQuery is slower than plain JavaScript which can have negative effects on web vitals like INP.