You can do both depending on your energy and strength while fasting. If you are detoxing heavily you may find it very difficult to keep up anything near your normal workout. It is possible, just listen to your body and see what it feels like doing and/or needs day to day.