Yup. I would personally recommend continuing to SOS chain until a 5 IV Ditto is caught, as this will likely save a fair bit of time. Breeding perfect offspring is pretty reasonable with a 5 IV Ditto -- it'll take longer than with a 6 IV one obviously, but it's certainly doable with a decent second parent (which, with time, you can breed for as well).