Villagers Married

How do you make your villages get married, I read that if you put both male and female in a shared house, and wait about a year, they will get married, is that true, or is there some other way to do it?