Yes and no....
It won't work well with either.
But you can live with the noise from the chain, then you can.....
I couldn't, so I stopped.
You could put some new chainrings on though, and it'd solve the noise issue in 9-speed.
Wouldn't recommend running 10-speed though.
ON THE OTHER HAND....
I "just happen" to have a 10-speed record chainset and bottom bracket going spare, if it's worth my while... (not particularly short of space/cash)....
Completed: 94 Stumpjumper w. M733; ; 92 Dave Yates 731 ; 97 Parkpre Pro-Elite ; Pace RC200 F6 ; Pace RC300; 82 Gios Super Record ; 97-8 De Rosa Giro D´Italia; ; Banani SPX Track bike ; 89 Alan/Mavic Cross Bike ; 05 Focus Cross Team ; 90 Look MI-80 all-Mavic ; 12 Focus Izalco Team/custom build ; 11 Focus Thunder Custom build
Projects : , Brouwer all-Mavic
Stripped : Pace RC303
Gone : GT Karakoram
Stayed in the family: Kuota Kharma, 04 Stumpjumper FSR
Ceased to be : Dynatech MT3, killed by corroded seatstays.