It depends on the agreement between the country that issued your passport and Serbia — the airport does not publish a universal answer. If you have a connecting flight, check separately whether you need a transit visa. The airport points travellers to their airline or to the Ministry of Foreign Affairs of the Republic of Serbia for the current requirements.