A binary operation defined on a set with one element
A binary operation $\star$ defined on the set $S$ is a function $S\times S\mapsto S$, so it is closed over $S$ by definition. The idea of closure only makes sense when talking about proper subsets of $S$.
The answer to the question is yes. Suppose $\star$ is a binary operation on $\{x\}$. Then if $a,b,c\in\{x\}$ we have $ab=ba$ and $a(bc)=(ab)c$, since everything is $x$.