it does on my site. This is how i have things set up on my site right now for my avatar borders that show ranks instead of the badge underneath the name.
<xf:if is="{$user.user_group_id} == 3"> <!-- Admin -->
<div class="avatar-frame admin">
In order for me to set the rank the person earned...