Can I hold bonds in my demat account even if they’re not listed?

I’ve bought a bond, but it’s not listed on any exchange. Can I still hold it in my demat account, or does it have to be listed to show up there?