Most people had this habit of cracking their back and neck a lot, especially when stretching. Normally, it is just fine particularly when a person with no joint pains do this. Nevertheless, making frequent or repeated cracking in your back or neck has indecisive long-term effects.
When you are in pain and you’re having an urge trying to crack your back and neck to ease the pain, I suggest you visit a Chiropractor first. It is much safer to have a skilled and certified Chiropractor to make a diagnosis and treat you properly.