I’m not an expert, but there’s a huge difference between USB cables. Requirements for a mouse are pretty low, so it could be a cheap cable poorly shielded and thin wires.
A good USB cable however should be fine, as it’s shielded from full speed and above.
I’m guessing that everything above low speed is OK. But I would avoid low speed, and that could include your mouse cable, but you can see when you cut it, whether it’s shielded or not.