Not sure what version you are thinking of, but the Chinese Remainder Theorem I was taught applies to all rings
If $M$ and $N$ are ideals such that $R=M+N$, then $R/(M\cap N)\cong R/M\times R/N$.
That is exactly what happens in this case since $(X+2)+(X+3)=R$ and $(X+2)(X+3)=(X^2+1)$.
(Addressing the addition to the question.)
In a polynomial ring over a field, you will be able to factor the polynomial into a finite product of powers of irreducible polynomials: $p(X)=\prod q_i(X)^{e_i}$. Then inductively using the theorem above, you will get $R/(p(X))\cong \prod R/(q_i(X)^{e_i})$. None of these factor rings can be broken down further since they are local rings.
The factorization of $p(X)$ could result in many pieces or only one: it depends totally upon the actual polynomial chosen. It could be as many as $deg(f)$ or as little as $1$.