Don't even think about it, Flip Side. If you achieve that level of detachment your emotions will dry up and you'll not only become unpleasant to be with, you won't even like yourself.
On a mature level, pain is the price we sometimes pay for loving. It's well worth the cost. If you're talking about pain at a teenage level be confident that we all went through it and you'll learn to put it behind you. It's part of learning how to be an adult.
If you try too hard to block out bad memories or experiences,you can do permanent damage to yourself...deal with things as they happen,and become wiser with each one.Your answer lies in the knowledge you take from each experience you have,remembering both the good and bad.
Nothing is impossible...when your dying emotionally love harder. Your heart is impervious to negativity...it survives and you keep living for what you love and what you do have. Gratitude and persevere. Its about not letting the pain and struggle ruin your will to live happy and loving.