Look at the system requirements for Windows 10.
If your computer, including the motherboard and all other components, meets the system requirements then Windows 10 should work.
However, if the motherboard and other components are minimal then performance is likely to suffer.