Yes any contact with the yeast bacteria can cause a yeast infection. If you are not careful you can spread your yeast infection by using public toilets, etc.
Yes, it is contagious, it may be through sexual intercourse or the baby getting it throught the mother by vaginal birth. Yeast is the same as thrush which is caused by candida infection, a fungus.