Both workout and rest should go hand in hand.
Do you know why rest plays an important role in your overall fitness routine ?
Your muscle growth happens not when you are in the gym but when you are taking rest.
Your strength increases when you give adequate rest to your body.
If you train without taking rest, it affects your sleep and your gains may go for a toss.
When you overtrain without rest, your immune system may not be able to repair your system well.