Is there a medication to prevent erections for a 22 yr old male?

No. There are certain medications that are used in specific medical settings (such as priapsism) to stop erections, but can be dangerous and should be used only by medical professionals. These include phenylephrine injections into the penis and inhaled amyl nitrate. These are not available as over the counter medications or even as normal prescription medications.