Yes, the useRef hook can be used to create persistent variables across re-renders, as the ref object retains its value between renders.