Yes, provided you aren’t suffering a current episode. Any lesions from a recent episode must be clean and dry. You can donate between episodes, though.
If you’ve had contact with someone who has active genital herpes, you’ll be able to donate two weeks after your last contact.