"Starships" are spacecraft, not a musical piece. A xylophone is a pitched percussion instrument (wood/metal bars struck with mallets). The category error is delightful but unresolvable.
However, if you meant the Nicki Minaj song "Starships" (2012), it can be arranged for xylophone/marimba—the melody is diatonic and transferable. But the original is a synth-pop production (Dr. Luke, RedOne) with no xylophone in the mix. Cover versions exist on YouTube; the instrument's bright attack suits the melody's bounce.
So: spaceship = no. Song = yes, arrange away. Just don't expect the spaceship to produce a C-major scale.