Yes, only if $H(-)$ is either a $\texttt{HMAC}(-, k)$ function or an hash algorithm resistant to Length-Extension attacks1, for example, the Blake2 hash algorithm2. I'm assuming too the collision/preimage resistance, so it would be unlikely to 2 different pairs $r \ne r'$ and $i \ne i'$ collide on $H(r || i)$ = $H(r' || i')$. In this case, the $i$ index would be the key $k$ for either $\texttt{HMAC}$ or keyed-mode of the length-extension resistant hash. In fact, it is mostly how the Bitcoin HD wallets3 work to generate one-time addresses.
Due the deterministic nature of hashes, you must never reuse the same $(r, i)$ pair to generate pseudo-random values. But due this deterministic nature too, this kind of PRF is used to generate entropy where public randomness is needed, e.g, on Blockchains. On the literature, they are called Provably Fair Algorithms4,5. In such contexts, the verifiable/reproducible nature is really important to protect against cheating, the $r$ entropy would be sealed under a commitment to be revealed later for verification.