Yes, any chracther who use a sword in high tech settings are Mary Sues.
The best way to get around this is using a something also high teck, like the Chainsword from Warhammer 40k.
Though why bother at all when a flame thrower or laser cutting device works just as good.