If you want to do the export directly from the backend, yes. If you want to do it from the (web) frontend the markdown has already been rendered into HTML. Also, the purpose of markdown is not to replace HTML. It's a format to write content that can be easily translated into HTML while still remaining easy to read (and write) for humans.