Yes:
iex(1)> Stream.unfold(5, fn ...(1)> 0 -> nil ...(1)> n -> {n, n - 1} ...(1)> end) |> is_function(2) true