An IDP is not a license itself, just an official multi-language translation of your home license, and whether you need one depends on the pairing of your home country and the destination. Many countries accept licenses issued in the same script or language family without an IDP for short visits, while others legally require the IDP alongside your license, and a few accept neither and require a local permit. Japan, for instance, is famously strict about which documents it accepts.
Two practical realities push toward getting one anyway. Rental companies sometimes demand an IDP even where the law is looser, and insurance can be denied after an accident if you were technically driving without valid documentation. Police at a roadside stop also respond much better to a document they can read.
IDPs are cheap, issued quickly by the motoring authority or automobile association in your home country, and cannot be legitimately issued once you are abroad, so sort it before you fly. Check the embassy or official transport authority of your destination for the definitive rule for your nationality, and ignore online sellers offering instant IDPs, which are a known scam.