Viable? Probably. Ideal? That could take some imagination to manage.
The traditional four-armed humanoid, with the extra arms directly under the base two arms that come with the 'humanoid' designation, has all of the issues that Demigan mentioned. But those issues do not mean that such a creature could not exist, just that it would probably not evolve from a two armed humanoid that existed in that same environment first.
Giving some distance from the primary arms, the secondary arms could have more range of motion without compromising the upper arms. However, in this configuration, there may need to be a bit more adjustment from stock humanoid to get them to be attached securely.
Another option would be to have the second pair of arms be specialized like Supernormal Step's Akela. Note that I'm not necessarily saying that specific specialization, but the extra arms don't have to be identical copies of the first pair. If they were, for example, claws that could break rocks, the larger, stronger primary arms could then move the bits of rock they broke. There are other specializations that could be useful as well.
That said, Demigan is right about it being complicated to add arms and retain flexibility. I'm not entirely certain about whether or not having an extra two places to grab things is really less useful than having double the strength in just two arms. However, any muscles in the extra arms do also require resources both to grow and to operate, so they do need more than negligible utility to work well.