Can “hiding” be your safety element?

Hi, I read this: “if food became safety in childhood, it most likely it is safety now.” Can safety not be food, alcohol or drugs or other false pleasures? Can it be “hiding?” By hiding, I mean not telling what you think, avoiding social interactions, avoiding situations where you could “fail,” etc.
After my dad died when I was a kid, I hid to avoid feeling negative emotions, I guess. And I feel like I have been doing the same thing until now.
So, I was wondering if safety for me is hiding.

I would love your help, coach. Thanks!