Different Families
Flying squirrels are rodents in the family Sciuridae, which includes squirrels, chipmunks, and marmots. Raccoons are carnivorans in the family Procyonidae, which includes coatis and kinkajous.
Although both animals may live in wooded areas, they are not closely related.