Absolutely wait to get married to buy the house if you want it in both your names. If you buy the house now, get it in one name only, so if the relationship falls apart, the house is still yours.
(If you were married and the relationship falls apart, the house would be settled in a divorce and the judge would order what would be done with it. If you are not married, it becomes an ugly battle.)