You can do exercises, till your TB is not Bone TB.
Do graded exercises and according to your endurance.
Next Steps
Continue medications to full duration without any gap
Health Tips
asking gym Instructor about pattern of exercise would be the best option.