No, that is not the "purpose of a union"
Some unions, especially in the USA, have functioned in such a way, but this is far from universal.