They were sufficiently distant that it does not fit most definitions.
Eleanor was Theodore's niece, but Franklin was the son of Teddy's 4th cousin, with Theodore and Franklin's dad sharing great-great-great-grandparents. At that point, most people barely call that family.
Eleanor, being Teddy's niece moved her one more step away from Franklin making her his 5th cousin.