Yes it will be a problem,
As recommended that the cacheroot(doc root ) must be equal to the document root of the web-server.
Document Root path in httpd.conf is the directory out of which you will serve your documents. By default, all requests are taken from this directory.
and docroot in dispatcher.any is the path where cache gets created.
So even though you find that cache gets created under doc root but page request will not serve cached documents because web server tries to find all cached document under document root and if not found then send request to server.
/Brijesh Yadav