Am I missing something? The only rules we have are BAB -> AAA and BBB -> BB, and we start with only A, no B, so neither of those rules can be used, so the answer is no?
EDIT: Ah, looks like you cant put emoji in HN comments. Imagine there's apples in there
(The whole thing made me think about applications to SQL query optimizers, although I'm not sure if it's practically useful for anything.)