TTC around pregnant women?

Someone told me that if you have a pregnant roommate or close coworker it's harder for you to get pregnant. Is there any truth to that? At first I laughed it off as ridiculous, but then I started thinking how in the past my cycle has matched up with roommates so maybe it's not so crazy?