Can
\begin{equation}
d(x,y) < 5 \end{equation}
be written as \begin{equation} y \in U\_5(x)\end{equation} ?

I am curious because I have seen $d(x,y) < \epsilon$ be written as $ y \in U\_\epsilon(x)$.

Thank you.