No, herpes is typically transmitted through direct skin-to-skin contact with an infected area or mucous membrane. Swallowing semen would not usually transmit the herpes virus unless there are open sores in the mouth or throat that come into contact with infectious fluids during oral sex. It's still essential to practice safe sexual habits and communicate openly about STDs to protect yourself and your partner from potential infections.
If you have any concerns about contracting or spreading a sexually transmitted infection like herpes, consider speaking with a healthcare provider for personalized advice based on your situation.