If one of you is HIV positive and another one is HIV negative, you need to be careful to reduce the risk of HIV transmission. While having sex you should use preventive measures to avoid the risk of the HIV virus.
Also the one with HIV negative can use PrEP to make the risk of transmission completely zero.