Yes, exercise is part of a healthy lifestyle and has many benefits in assisting weight loss. It can help you increase your metabolism and maintain your muscle mass (something you don’t want to lose too much).
You don’t have to do heavy exercise, simply start by achieving 8000-10000 steps a day first. You can also do some cardio exercise and strength training to build up the habit of exercising.
If you want to exercise, I advise you to do low-intensity exercise such as light cardio or walking during the fasting period. If you want to do more heavy exercise, it is better to plan your workout during your eating window.
Both cardio and weightlifting are good exercises as they enhance your heart and lung function and maintain your muscle strength. Remember to have a recovery meal that is rich in protein and carbs after your workout.