Lets say I flash sprints firmware on my at&t htc one m8, could i use a sprint sim card?

I have a HTC One m8 with AT&T, it has an unlocked bootloader and a custom ROM, but let's say I would want to switch to Sprint, could I download the HTC One m8 Sprint firmware and flash it and use Sprint on my phone?