Yes, depending on your clinic’s regulations. Depending on your results, your samples may be “quarantined,” or stored separately from others’, to prevent any cross-contamination (though cross-contamination is extremely unlikely).
When used in IUI or IVF, sperm is typically “washed,” or separated from the semen. The semen is what carries infection, not the sperm itself. The process of sperm washing is very effective at removing pathogens from sperm samples.
However, there is always the small possibility that someone who is inseminated with an STI-positive sample could contract an STI. Therefore, you should consult your doctor about the necessary consent forms or other paperwork required to use your sample.