How to hide the blog section if I have no blogs to show?

It can be done by the admin panel>blog section>remove the blog post categories from the action button. Or  you can mark the status inactive through the edit option.

You can follow this article for more info Blog Management‍