Do react hooks need to return a value

I've recently started to build out custom hooks in my react application and have been following the documentation on reacts website, however, the hooks which I am building require no return value as they setup data for redux on init.

Example;

// custom hook
export const useSetup() {
  useEffect(() => {
    if (data) fetch().then((data) => dispatch(setInit(data)))
  }, [dispatch])
}


// functional component
export function Details() {
  useSetup()

I can't find documentation explicitly stating a hook needs to return anything, however, I cannot find an example of a hook not returning something. Can someone advise on if this approach is correct?