The unitary matrices of size $n$ form a group under matrix multiplication: For $X, Y \in U(n)$, we have
$$(XX')^* (XX') = (X')^* X^* X X' = (X')^* I_n X' = (X')^* X' = I_n ,$$
and a similar claim shows that $U(n)$ is closed under inversion. Thus, $X \in U(n)$ implies $X^k \in U(n)$ for all $k \in \Bbb Z$.
In fact, it's straightforward to show that $U(n)$ is a compact Lie group. Thus, the exponential map $\exp : \mathfrak u(n) \to U(n)$ is surjective and hence $U(n)$ is divisible: For any element $Z \in U(n)$ and any positive integer $s$, there is an element $Y \in U(s)$ such that $Z = Y^s$. If we set $Z = X^r$, then we get $$\boxed{X^r = Y^s}$$ as desired. Except when $s = 1$ (i.e., when $k$ is an integer), however, the element $Y$ is not unique: For any integer $t$, we have $(e^{2 \pi i t / s} Y)^s = e^{2 \pi i t} Y^s = Y^s$.
The case of irrational exponent is more delicate, and one needs to be precise about what $X^\alpha$ means for nonintegral $\alpha$. (The non-uniqueness of $Y$ in the rational case already hints at this issue.) One option is to choose in some appropriate neighborhood $V$ in $U(n)$ of the identity matrix $I_n$ a matrix logarithm $\log$, that is, an inverse for ${\exp}\vert_V$. Then, we can declare (for $X \in V$) that $X^{\alpha} = \exp(\alpha \log X)$, and in particular $X^{\alpha} \in U(n)$, but the quantity $X^\alpha$ depends on the choice of $\log$, which is not unique.