You can apply for temporary residence permit, but nobody can guarantee you that you will get temporary residence permit. More information about getting temporary residence permit in Serbia, you can find on website of Ministry of Interior on next link. You can open the company without having temporary residence permit in Serbia. It is not obligatory.