It doesnt matter if the company you buy it from goes bankrupt AFTER you have brought it - as long as you have paid them or you have a loan through the bank etc it doesnt matter.
The only probably would be if you had any problems with the car that you wouldnt be able to take it back etc.
Personally I wouldnt buy a car from a company I know was in trouble