Mental Health

If i have been off of my sleep prescription for a few days now can that make my anxiety and mental health feel worse? i’m not sleeping great but it’s not TERRIBLE. but can is still affect me since my body is used to taking it?