basically, dissociation and psychosis have sort of a complicated relationship with each other and can affect each other, but you generally aren't going to develop a dissociative disorder BECAUSE of psychosis
(just trying to cover all my bases since you also tagged osdd and did ^^ )