To put it simply yes. Depersonalization and derealization are caused from to much anxiety and stress. What's ocd, an aniexty disorder. I've been having small episodes of it lately. It's alright try and not think about it even though it's easier said than done of course.
It'll be okay