Yes, <Switch> can be used with <StaticRouter>. <StaticRouter> provides the routing context that <Switch> needs to function correctly.