uBlock can block javascript too. No need for another addon.
Except that “uBlock origin” is maintained by the OG developer and “uBlock” (of ublock.org) is a now filthy ripoff owned by some greedy dickhead who OG developer trusted with control over the original repository.
So yeah you only need one of them but I’d stick with the OG “origin” one.
Additionally, you can go a step further into the Privacy mania and install NoScript (JavaScript blocker). In my experience you only need to unblock 1-2 script domains on every website to make it functional.