Varnish caches all the server responses and refreshes every two minutes. So, yes, it helps with caching dynamic content.