No, I agree that allegiance is a behavioral motivator, but I think it is distinct from loyalty and that people tend to conflate the concepts (similar to how people sometimes conflate or confuse infer/imply and borrow/lend).
Loyalty, a behavior, can be observed; allegiance, a commitment (maybe supported by emotion, maybe not), cannot.
It’s English, so it’s difficult to be wrong, but that phrase do be weird.