Why is my car overheating at idle or in heavy traffic?

No, a bad temperature sensor or two is the likely culprit.
I suggest that you get this attended to very promptly.
Continued overheating is slowly but surely reducing the life of your engine.