As long as you have permission from your doctor, you can still join in the class.
Please make sure that your teacher knows if you are pregnant or of any injuries before the class starts and adhere to the advice of your doctor/specialist during the class.