That depends on the brand and location (& in some cases even warranty tos, lol), manufacturers licence & maintain dealerships licenced mechanics/shops differently. It's (maintenance costs & quality) an important aspect of owning a car.
But generally, yes.
Tho non-official shops sometimes connect your car to the mothercloud too, depending on what needs servicing.