In theory, yes. You will need to remove the WiFi code of course. However, the code is quite long. I am concerned it might not fit on Nano. You will have to try it and see if it fits.
If it does not fit, there will be ways to reduce the size of the code. It is very inefficiently written with many long sections of repeated code which could be shrunk down significantly.