No, here's a counterexample.
Let $X$ be a set of natural numbers that is recursively enumerable but not recursive. (So $X$ is $\Sigma^0_1$ but not $\Pi^0_1.)$
Define $A = \lbrace 2n \mid n\in X \rbrace,$ and $B = \lbrace 2n+1 \mid n\in X \rbrace.$ Then $A$ and $B$ are also both $\Sigma^0_1$ but not $\Pi^0_1,$ which is enough to see that this is a counterexample.
By the way, $C^C = A \cup B$ is also $\Sigma^0_1$ (since both $A$ and $B$ are $\Sigma^0_1)$ but not $\Pi^0_1$ (since if it were $\Pi^0_1,$ it would then be recursive, which would imply that $X$ is recursive).