The short answer to your question is yes... do take a break from the lesson material to pursue the music that interests you. It will give you something to look forward to after the scale exercises, etc are over and keep you engaged in learning bass. Scales, scales and more scales with nothing in between can be a soul-killer for some and, I am sure has caused more than one to drop out of learning an instrument due to sheer boredom. Here comes the however...
HOWEVER
With that said, you need to trust your instructor and those here that have been through the process when we say don't stop - continue with those exercises... As you continue to progress and learn the "why" behind playing those scales, arpeggios, inversions, and numerous exercises that right now seem to be boring, repetitive drudgery, you will find that learning the tunes will become much MUCH easier... and then after that the real fun starts

The fundamentals you are practicing now are your gateway to the JAM, my friend, so don't give up on 'em!
Good luck and HAVE FUN.
