You can marry someone else in Crusader Kings 3, but it is not a legal marriage. A marriage requires a priest and the consent of both parties involved to be considered valid.