does a spider belong to class myriapoda

no - see https://en.wikipedia.org/wiki/Myriapoda

spiders are arachnids, see https://en.wikipedia.org/wiki/Arachnid