Yes, minors can open a demat account.
Minors demat and trading accounts will be operated by guardians till the period when minor becomes major. Parents of the minor child can act as a legal guardian or in the absence of both, the court can appoint the legal guardian to the minor account.
Only the guardian can open, close, and operate the minors account.