Connecting pihole to other raspberry running VPN?

So I was thinking if it would work if I set up a VPN on other raspberry and then set my pihole on other raspberry to use the first ones dns? I might be missing something here, but this is just a thought that came up to my mind.

What are you trying to accomplish by doing this?

Just to use vpn and pihole simultaneously.

We have a guide for setting up VPN on the same platform that is running Pi-hole:

I'll check that, thanks!