Yes, even a Hindu Undivided Family (HUF) can open a Demat account. The following can open a Demat account:
Resident individual
Hindu Undivided Family (HUF)
Domestic Companies
NRIs
Clearing members
The documents required and the procedure changes for each category.