We have narrations encouraging marrying from other families and not very near relatives especially when is an inherited illness in the family.
Cousin marriages took place among Ahlul Bayt (AS) like the marriage of Imam Ali (AS) and Lady Fatima (AS) , marriage of Imam Zainul Abideen (AS) and Fatima daughter of Imam Hasan (AS) and many other examples.
Wassalam.