When is it a Good Idea?
It probably won't be a very pleasant thing to do, but evaluating your relationship and the terms on which you ended it, will be the deciding factor. If you did end it on good terms, it is perfectly alright to be friends. There are so many instances where friends started dating and later part ways as they weren't compatible, but still managed to be friends.