Is it possible to contract STD’s from unprotected homosexual

Patient: Is it possible to contract STD’s from unprotected homosexual anal or oral sex from someone who doesn’t have it.My partner tells me that we could attract STD’s because the particles of the virus are in the air. Just want to know more about this.Thank you

Doctor: