From a biological point yes, because you are not blood related, but morally I would think it’s a bad idea because you are basically step-cousins and it could become weird for the family. And if things don’t work out then what happens at family gatherings etc?