I do this all the time.
In my country (US), not only is it polite, it's standard protocol. Exchanging names is the basic social nicety. It's all kinds of normal to offer a handshake and say, "I'm dbza, pleased to meet you." It'd be a rare bird who wouldn't reciprocate with his own name.