Employment Law Questions? Ask an Employment Lawyer.
Yes, it would probably be deemed valid unless the language int he noncompete agreement says it is not assignable by either party. Typically when a new company buys out a previous company they will assign all of their contracts to the new company. I would not be surprised however if this new company is willing to release you as you they have not really invested in you. They may be very willing to release you.
If you have no further questions a positive rating would be greatly appreciated.