Yes, ballcock valves can fail over time due to wear and tear, mineral build-up, or low-quality materials. It's quite common for them to stop shutting off properly, which leads to overflow problems like the one you're experiencing. Adjusting the float rod as you did is a temporary fix, but...