What something is remains unchanged regardless of how that thing is used to acomplish a goal.
Holding a door open for someone is polite. If i hold the door open for a married woman and secretly in my own head do it in the hope it will impress her and I can steal her away from her husband... my goal may not be polite, but the act of opening the door is still polite regardless.