Yes, retention is applied to messages that meet the search criteria provided in the Custom Retention rule. So rather than a message having a static retention period, that is defined at time of archival, the retention applied to a message will be determined by the retention rules that have been configured.