No, tooth cleaning is not painful.
Tooth cleaning is done on enamel of the tooth which is definitely not painful of done properly.
If swollen gum is involved u can consult me for medications, I can provide you further assistance for the same.
Next Steps
Brush your teeth twice a day followed by mouthwash.