The use of -kun is not a surefire way of determining one's sex. While this honorific is typically used for males, it can be used for females, too. Tomboys and masculine-behaving women sometimes prefer being addressed by -kun than -san. Also, -kun may used for subordinate women in office environments.