How to buy mutual fund in demat account

Can mutual funds be purchased directly through a Demat account?,