Yes, but Apple has monopoly pricing power for people who like their OS and ecosystem, so they get paid some of the money for their app store via hardware, in effect. If a cheaper provider had their app store and OS, their hardware profits would decline quickly.