Uno and leonardo

I'm working about steering wheel project ,but my question is ,can a code created to leonardo ,work in uno without any problem ?

If the device is a USB HID, no.