That would be no. Even if you use ADB to remove bunch of packages that make connections you still can’t be sure if you will have privacy since stock ROM is proprietary. DNS can block some connections but Android and apps can use their own DNS if they want so it also depends.
If question was about security then yes, sticking with stock ROM is usually more secure although many argue that GrapheneOS holds highest security standard. DNS can also improve security since it can block malicious domains, that depends which DNS provider you’re using.
You can always ask online community here or on other platforms since they can provide you with exactly what you want.