No, cohabitation agreements are not the same as marriage and do not give any legal grounds for a Spouse Visa. They can, however, be used as proof of an established relationship both in cases of Spouse Visas and in cases of Fiancé(e) Visas.