Yes. When $I$ is an ideal of $R$ then we have by the definition of the ideal that $ra\in I$ and $ar\in I$, \forall r\in R, \forall a\in I$.
If $1\in I$, then for $a=1$ we get $r\in I$ and $r\in I$, \forall r\in R$. That means that $I=R$, or not?
So, if we have that $I\subset R$, then $1$ must not be contained in $I$, or not? @TedShifrin