You should be able to regardless, since the method for the subcommand isn't actually triggered until after WordPress is done loading. None of the other commands would work either, since they rely on static methods from the Sitemap class.