No, this is referring to a wikipedia user and we have no idea what gender they have.
Gender preference is public, you could access it from web API just like any MediaWiki JavaScript.