It is not really something a native would say, let alone being correct. You may say: It costs as much to fix / repair something as it is to buy a new one. The cost of fixing something is just/ nearly as much as a new one.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.