Yes, this explanation is exactly correctly.
To make things simple. Initially you have the 2 neutrally
charged balls. When you rub it with perspex rod, electrons will be
transferred from the perspex to the balls, making perspex +ve
charged and the balls -ve charged. Now you see, since balls and
perspex have unlike charges, they attract. As both balls obtain -ve
charges, they repel.
but if the ball touching each other then is different cause when
being touched already.
hence leading my to say the questions needs to be more
clear?