Going way back to the beginnings of both companies, yes. Apple had the ‘walled garden’, where the idea was that you were safer with all things ‘Apple Approved’.
Microsoft and most of the industry went the other way at the time and MS grew exponentially.