If you're on treatment and have immeasurable virus levels, you cannot transmit HIV when having sex, even if a condom is not used. The safest thing you can do, if you want to avoid getting HIV yourself, is to have sex with somebody how have undetectable HIV.