Error at last step "send marketing email"

Yes, the customers must be opted in to marketing emails for that message to send. The check for whether they have opted in is included in the templates provided for abandonment automations, so if you want to avoid the error, you can add the check back in.