I think these grooves you refer to (from the early lessons) could be considered building blocks, like Legos, that you can re-use in different setting to, e.g., create basslines. And, so, yes, remembering them or learning them by heart, is helpful in this context.
Eventually, you want to memorize all the songs you play. I find that I play more relaxed and able to focus on what is going on around me (i.e., the other musicians) when I play by heart, as opposed to having to read score or check on the sequence of song segments. This will most likely come naturally as you play the song again and again (aka “practice” )
Other aspects you will eventually want to memorize are shapes and licks, where it becomes really beneficial that the fretboard is laid out so symmetrically on a bass. Thus, you can move these shapes around easily, i.e., they are the same in different keys. If this doesn’t make much sense to you yet, I bet it will very soon