You can add a co-author whenever you want but they have to be contributing something substantial to the project ie design, data collection, writing, supervision etc.
Generally people don't add co-authors after data collection has finished in order to build a relationship - it would be more common to do this at project design stage.