Yes you can do that .
But make sure before doing this, you have alternate options. For selling your company, get in touch with Potential acquirer. But make sure you are ready to sell, dont just talk to them to see what prices you can get for your startup.
Main part in the process is Negotiating. You have to plan from before as what your company total valuation is and then negotiate with the buyer and take action on it. Investors will value your company either by seeing company profit loss statement or by checking how your long term strategy fits with acquiring company.