Some HOA are built with the total building belonging to the Homeowner.
On some, the HOS owns the roofs
On some, the HOA owns the exterior walls,
On most, the HOD owns all the land.
You need to investigate what you are getting for the money,
and what the CCRs are:
It can make all the difference in the world.
Good luck and may God bless