Yes you can do this. I have cyanogenmod running on my nexus 5. there is a feature called "usb-tethering" that allows your phone to function in this manner. I use it because I find it hard to find drivers that work well with wifi adapters under linux. I don't know if you can game on a setup like this, but it's fine for watching hd youtube.