Let $X$ be a scheme over a field $k$. Let $R$ be the $k$-algebra of global sections of $X$'s structure sheaf.
Is there any way to view scheme morphisms $X\rightarrow \mathrm{Spec}(k[t])$ as elements of $R$? Or are these two notions unrelated?
(Apologies if this question is ill-formed; I have little background in schemes.)
You absolutely can. For any ring $A$ and scheme $X$, we have a natural bijection $$Hom( X, Spec(A) ) \to Hom( A, \Gamma( X, O_X) ), $$ where the left side is scheme morphisms and the right side is ring morphisms. See Hartshorne exercise II.2.4. This bijection can be upgraded to that between $k$-schemes and $k$-algebra morphisms in which case, as user816709 points out, your result follows.