Depends. If they're carrying a lot of things, have a pushchair, are old (and frail) or disabled/injured etc. These people might need your help with the door.
If someone is directly behind me I'll hold it so it doesn't slam in their face. But I don't go out the way to hold doors if I think they're capable of doing it themselves. I don't really get it.