Sort:  

Yeah, it'll let you do that as long as you configure everything correctly.

You can also use iptables to just make tor your DNS provider, but you don't get caching if you do it that way so things will resolve slower.