Yes, but you don't have the right to tell the retailer what price they must sell your product at. The trouble began when they went back to Amazon and said, "You must sell at the price we agreed on with Apple and nothing less."
Without Apple, the publishers had no meaningful alternative ebook store so Amazon always had the upper hand in contract negotiations, even going so far as to threaten to delist their paper books if they didn't accept the terms.
To continue the analogy: If, for instance, the Top 100 paid app authors of Android apps banded together to force Amazon and Google to change their terms by threatening to take away their titles that would certainly raise at least a few antitrust eyebrows.
Without Apple providing an alternative, Amazon controlled prices within the ebook market.