Varnish Configuration .vcl question

Is the following in a varnish config file sufficient to pass any URL with the word static in it to Apache? Thanks

 if (req.url ~ "static" )
{
    return (pass);
}