By default, macOS does not use anything under /usr/local, so yes you can brew link --overwrite gnupg safely.
/usr/local
brew link --overwrite gnupg