To my knowledge, accreditation takes a few years and requires demonstrating adherence to the accreditation standards over a similar period of years.
I don't know if, for a new school, accreditation groups retroactively "credit" any degrees that the school has granted since opening.