Obviously, but be aware that this is not possible with all VPNs. The best VPNs usable on routers today are ExpressVPN, CyberGhost and NordVPN.