Yes. I know is some cases, users put ]]> but does not mean that, like
<pre><code><![CDATA[ ]]></code></pre>
However, in
<script><![CDATA[ ]]></script>
]]> is correct.
I code it directly, but if a plugin use a filter, things do not change because the conversion runs after filters.