Yes, but “an Is method should only shallowly compare err and the target and not call Unwrap on either”:
https://pkg.go.dev/errors#Is