Yes but at the minute your computer looks at the router for a DNS to use. However changing that tells your computer not to look at the router for a DNS.
If you are looking at blocking people using a different DNS you may be able to block this on your router.