Your doctor is the only one who can answer that question so it’s important that you tell him/her that you had this pain. Your doctor can then evaluate if it would be a good idea to continue the massages.
That being said, it’s not unusual for there to be some soreness after a massage because of the manipulation of the muscles and the pressure on certain points on your back. This should also be discussed with the massage therapist who did the treatment.