condoms do reduce the risk of transmitting those kind of things but your boyfriend should definitely get treated anyway - no sense in only one of you being treated if both of you had it.
If you are using a condom, then you should be safe. But, for good reason he should also get a topical ointment.