Can I use add_menu_page in themes?

Can I use add_menu_page and add_submenu_page in a theme? They produce an error on Theme-check, however, the error is removed when adding this plugin, but I am not sure if this plugin is still active.

I got soft rejected and I am tried to ask the reviewers but they usually don’t reply.


If theme check warns about it then I wouldn’t bother, as Themeforest could make it a rule at any time, functionality like that should be in a plugin ideally.