yeast infection and sex

i just finished a 3 day cream to fix a yeast infection, is it safe for me and my boyfriend to have sex or should i wait longer??

also can guys contract yeast infections through sex?