How do medications work ?

hi, i was just wondering how the meds worked ? does taking them before sex mean you wont spread it? my partner is really big on oral & really wants to try but i am terrified i’ll pass it to him

medication decreases transmission and viral shedding but doesnt completely eliminate the risk