Is it possible to purchase a company who is presently in a chapter 13?

Chapter13 is not available to corporations Chapt. 11 is.

And yes, you can buy the stock of a corporation in BK...in fact it almost always is transferred...to creditors or 3rd party financiers.

If it isn't a corporation...it like the assets of anyone, may be sold in BK, probably requiring trustee approval.