Can i safely switch UsePAM to no?

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.14
How are you able to access your server: SSH

Describe your issue

Hi
I have an issue when i ssh on my VPS (Debian 12 + Yunohost). My authentication with key is taking a long time (around 30s) to let me log in and get the prompt. After a search, i’ve tried the set UsePAM to no and then the login takes less than 2s.
Do you know if it’s safe to change the setting in particular it has been generated by Yunohost so not sure if i can change it manually without breaking every thing
Thx

Share relevant logs or error messages

N/A