Depend on how you are stretching and what is the cause of the underlying neck pain
in the first place.
Listen to your body. If it hurts to do something, stop. Your bady is telling you something is wrong. Get an exam from your doc to see if you have an issue underneath and make sure you are doing things correctly.