I didn't know about PrEP, but from what I've just read it has to be taken daily in order to be effective. A vaccine could be a safer method.
The other reply has a solid point. Maybe you can find a country where it’s not possible to distribute daily PrEP, but is possible to vaccinate people and then test them for HIV monthly.
Some people who start the trial not taking PrEP will also continue the trial without taking the PrEP they're offered and educated about for free.