Without any computer information I will be guessing, but if you have a laptop, unless under Warranty, it will be cheaper to purchase a new laptop.
If you have a Desktop than yes you can replace the Motherboard as long as it is compatible with your RAM & CPU you have now.