Yes, "kets" are vectors and must live in a vector space. In quantum theory, those are infinite dimensional Hilbert spaces. You can define and solve (at least theoretically) the wave equation in any space on which the appropriate derivatives are defined.