No because the $html is also formulated inside the if statement as it is https://github.com/joomla/joomla-cms/blob/staging/plugins/content/vote/vote.php#L90