You could say the cosine function is $\frac \pi 2$ behind the sine function,
although I would rather say it is $\frac \pi 2$ ahead:
as you increase $\theta,$ whatever value the $\sin\theta$ reaches,
$\cos\theta$ reached that value $\frac \pi 2$ radians "earlier".
In other words, $\cos\theta = \sin\left(\theta + \frac \pi 2\right).$
Whichever way you look at it ("ahead" or "behind"),
for any predetermined value $y$ where $-1 < y < 1,$
as you let $\theta$ increase $\sin\theta$ will attain the value $y$ twice
during every interval of length $2\pi$ through which you increase $\theta$
(that is, it reaches each value between $-1$ and $1$ twice for every full cycle).
If all you are told is that $\sin\theta = \frac 35,$ but you are told nothing
else about $\theta,$ then you do not know which of the two possible values of
$\theta$ resulted in this value of the sine function.
It could be either one, there is a different value of $\cos\theta$ in each case.