If you buy one with multiple M.2 slots, then your motherboard need to support lane bifurcation, if it just have one, it should work with no issue, however, I never booted an OS from these things.
Also, why not just a sata ssd if it’s just to revive a PC? It might be cheaper no?