For a compact space $Y$ the answer is affirmative, but in general case of Polish space $Y$ it is negative.
Results yielding nice selections of relations $R$ are known in Descriptive Set Theory as Uniformization Theorems, see Section 18 of the standard textbook [A.Kechris, Classical Descriptive Set Theory, Springer, 1995].
According to Theorem 18.18 of Arsenin, Kunugui (in this section), for Polish spaces $X,Y$ and a Borel set $R\subset X\times Y$ with all sections $R_x=\{y\in Y:(x,y)\in R\}$, $x\in X$, $\sigma$-compact and non-empty, there exists a Borel function $f:X\to Y$ whose graph is contained in $R$.
On the other hand, by Exersice 18.9 in the book of Kechris, for the Polish spaces $X=Y=\omega^\omega$ there exists a closed subset $R\subset X\times Y$ such that for every $x\in Y$ the section $R_x$ is uncountable, but $R$ admits no Borel uniformization (i.e., no Borel function $f:X\to Y$ whose graph is contained in $R$). Yet by Jankov, von Neumann Uniformization Theorem, $R$ always has a $\sigma(\Sigma_1^1)$-measurable uniformization.