Is it okay to shut yourself after being hurt in relationship?

Is it okay to shut yourself after being hurt in relationship?
Post Opinion