Sex with guy has herpes

So my boyfriend has herpes. I was under the impression that he took his meds everyday. But he doesn’t...so now I’m thinking I’m screwed. Because he takes them only during a break out....so now I’m thinking I’m gonna have to leave him. I don’t want herpes. Should I see about getting on meds?