The database can continue to be accessed whilst it is being joined to an availability group. depending on the volume of transaction they will just be applied to the secondary once it is joined. unless there is a log backup in which case this will need applying to the secondary.