Can I use an inline hook to verify a 3rd party access token in a token exchange?

Can I use an inline hook to verify a 3rd party access token in a token exchange?

Have an AT being generated from Microsoft social IDP in an 3rd party application that I want to exchange for an Okta custom org access token. It’s Workforce Identity pattern that I would like à 3rd party token to be trusted.

Would an inline hook help me?