Indeed. But it is difficult to find a house near work that is not already part of an HOA.
Afaik, most of them are vestigial instruments left over from master planned development financing, that gave the developers X years of voting control in order to recoup some part of their investment.