Technically, yes. The domain is a singleton, so the only topology on it is the trivial one, $\tau_0$. Then if $(Y,\tau)$ is any other topological space and $*$ is the one-point space
$$f:(*,\tau_0)\to (Y,\tau)$$
is trivially continuous because if $U\in\tau$ is open
$$f^{-1}(U)\in\{\varnothing, *\}=\tau_0$$
depending on whether or not $f(*)\in U$ or not.
Just to address GitGud's objection, we note that this agrees with the naïve, calculus notion of a limit as well, we're required that all $x\in \{0\}\setminus \{0\}=\varnothing$ satisfy some property. Of course there are no counterexamples (the set is empty!) so it's true, because the definition of "truth" is "that for which no instance is false." There aren't any false instances in the null set (there aren't any at all!)
This in fact follows from the above, but for the student who may not be familiar with the modern definition of continuity (which certainly resolves this problem much more directly) this is another way to think of it.
And of course, even in calculus we routinely talk about continuity on non-open subsets of $\Bbb R$. The mean-value theorem, a hallmark of calculus, has as a hypothesis "continuous on $[a,b]$." If we are not willing to extend to singletons, this seems rather unfairly favoring of intervals.