No, Silver and Shadow are not cousins. Shadow was created, whereas Silver was not, so the two do not share that kind of family connection despite both being part of the Sonic universe.