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)....