No, Sonic and Shadow the Hedgehog aren't related. Shadow was created in a laboratory by Dr. Eggman's grandfather, Professor Gerald Robotnik, which makes their origins completely separate.
Despite their similar appearance, the two are distinct characters with very different backgrounds and personalities.