STDs and recruitment

Can just now contracting a std mess up your recruitment shot of joining the military?