No, you don't need to add any policy or configuration to implement to enforce that PKCE.
I would like to know how you registered the application as a SPA or WEB?
Authorization code flow is a protocol that enables a client application to obtain authorized access to protected resources like web APIs. The auth code flow requires a user-agent that supports redirection from the authorization server back to your application, PKCE adds an additional layer of security to the authorization code flow by requiring the client to generate a code challenge and a code verifier which aims to prevent interception attacks on public clients as they do not have a secret which means they do not have a real way of authenticating themselves.
PKCE is required for Single-page web applications (SPA)because they are typically considered public clients, which cannot securely store a client secret. If your application is configured as SPA, PKCE will be enabled by default.
If you request SPA application to get an authorization code with /authorize endpoint without providing PKCE parameters, it will throw an error as below.
While PKCE is not required for web API's, it is still recommended for web API's. An authorization code can be obtained to /authorize endpoint, regardless of whether you provide PKCE.
Hope this helps. Do let us know if you any further queries.
Thanks,
Navya.