If you buy a home in a neighborhood or building with a voluntary HOA, you don't have to join it. But most HOAs are mandatory with the purchase of your home acting as a contract with the HOA.