Some exercise may be beneficial, but that depends on your constitution; your strength or weakness throughout; how long you decide to fast for, and for what reasons.
Ideally, you should listen to the wisdom of your body and what it is actually telling you it really needs.