Yes it will. Possibly it will function without a problem. Why ?
Because Ubuntu(Linux) has the most of the drivers (if not all of them) integrated.
You cannot do the same thing with Windows OS. Why ?
Because Windows OS has not the drivers integrated.When you install Windows for the first time at the first (or second maybe) update it will install automatically all the necessary drivers for your system. So if you load the specific OS to another system drivers will conflict with the different hardware.
In Ubuntu(Linux) during boot the Linux kernel searches and loads the appropriate drivers.As I said before , the drivers are integrated to the kernel.
If you have any proprietary (additional) drivers installed it will be good to remove them before make the switch. I upvoted the Rinzwind's comment and edited my answer to add this info.
So, go for it.