Hello there.
I can understand your concern.
People who are in contact with such patients are at a high risk of getting infected. You might as well be infected, but it's not necessary that the bacteria will bring out the disease in you.
If you are a immunocompromised person like patients suffering from
hiv, patients on immunosuppressive drugs, ten it might affect you.
Don't need to be worried.
Consult a pulmonologist in person if you still feel you might be infected.
Best regards.
Dr. Anil Kumar Jain.