When using the none hook variation - apolloClient.query, does the caching work?

lets say I use:

  const data = await client.query({
    query: someQuery,
  });

in multiple components in a tree, will the client cache the result or does the “inMemoryCache” work only in hoc/hook form?