Yes, this is an aspect of secure attachment. Securely attached people prioritize relationships; relationships take time and effort and require reliability.
Insecurely attached people are usually not satisfied with relationships, and consequently don't prioritize them. The (possibly unconscious) expectation of a bad relationship is self-fulfilling.
https://www.attachmentproject.com/blog/four-attachment-style...