Avoid heavy lifting for some weeks till piles are treated completely. However, you can work out and do other exercises if you go to the gym.