To buy a house, you need to go to the real estate bureau to issue a certificate of purchase. You can't buy a house without proof. The real estate bureau system is connected with the civil affairs bureau, and your marriage records can be found.
Once a man and a woman get married, they belong to the same family. At present, families cannot own more than two houses. So buying a house is ok, but it will definitely be classified as a second suite.