No, this does not meet the goal. Creating a mail contact for each mail-enabled public folder in Exchange Online will not ensure that messages can only be delivered to valid recipients, as it does not allow for any filtering or validation of messages. To ensure that messages can only be delivered to valid recipients, you need to configure a connector in Exchange Online to allow only messages from valid senders to be delivered to the mail-enabled public folders.