No, the restrictions needn't be injective, even for affine schemes. Here is a counterexample:
Let $k$ be a field, $A$ the ring $A=k[X,Y]/(Y^2,XY)=k[x,y]$ and $S=\operatorname {Spec} (A)$ the corresponding affine scheme.
The restriction morphism from $U=S$ to $V=D(x)$$$\rho:\mathcal O(S)=A \to \mathcal O (D(x))=A_x$$ is not injective because it sends $y\neq 0\in \mathcal O(S)=A$ to $y|D(x)=\frac {y}{1}=0\in \mathcal O (D(x))=A_x$ .
[Why is $\frac {y}{1}=0\in A_x$ ? Because $xy=0$ and $x$ is invertible in $A_x$]
The existence of the nontrivial nilpotent $y$ in this example is not coincidental: in a scheme that is irreducible and reduced (such schemes are called integral) all restriction maps between open subsets are indeed injective.
Edit
In answer to a request of the OP in his comment below, the quickest way to prove that the restriction map $\rho_U^V:O(V)\to O(U)$ is injective in the integral case is to compose it with the canonical morphism $\mathcal O(U)\to O_{X,\xi}$ into the generic stalk and to remark that the composition $\mathcal O(V)\to O_{X,\xi}$ is injective as a consequence of Qing Liu's Proposition 4.18 (b), page 65.
[Some kid on the block will remind you that $v\circ u$ injective $\implies u$ injective]