Not exactly. SMTP plugins that connect to Gmail use OAuth credentials, a Client ID and a Client Secret, instead of a single API key. Many people call them an API key and secret, but in Google Cloud you create them under Credentials as an OAuth client ID.

