To apologise or not to apologise?

Is it true that apologizing doesn't necessarily mean that you're wrong or the other person's right, and that it just means that you value your relationship more than your ego?

Came across it... Give it a think, because I know I am.