Yes, one can have sex even if one has asthma. If asthma is affecting one's sexual life, it means that the asthma is not well controlled and one needs to consult a doctor.
Related Questions
What diet should I follow if I have asthma? I already have a set diet for wrestling.