Similar to above but it's a little bit different.
Answer:$n\geq 4$ and even.
Example for $n\geq 4$ even: Take the centers as $(row,column):(1,3),(2,1),(3,4),(4,2)$ and take center as $(1,1)$ for $(n-4)$ times.
It's obvious that we cannot make all the squares black in two moves because we can change at most $5$ squares' colours in one move.
In one move, we always change exactly two of the squares in $S=(1,2),(1,3),(2,1),(2,4),(3,1),(3,4),(4,2),(4,3)$ which are on the edges but not on the corners. Also in one move, we can change the colours of two squares in $S$ if they have a common vertex.
$P_1,P_2,...,P_8\in S$ is an $8-gon$ and we write non-negative integers on its edges. $|P_iP_{i+1}|$ is equal to the number of moves between $P_i$ and $P_{i+1}$. We know that $|P_iP_{i-1}|+|P_iP_{i+1}|$ is an odd number. So $4$ of the edges should be odd, $4$ of them should be even so the sum is even which is equal to the total number of moves, as desired.