Question about HERPES

Just wanted to ask questions. Can herpes be tramitted through protected sex? Like also in oral sex while using a condom? And can a person be tested even though he/she isn't showing any symptoms at that time?